Y
Yansky
Hi, I'm trying to check if there is a next page link on pages. Here is
an example page: http://forums.whirlpool.net.au/forum-replies.cfm?t=977718&p=42
This is the xpath I'm trying:
document.evaluate( '//ul[@class= "pagination"][1]//li[@class=
"current"][following-sibling::li][1][not( @class = "last" )]/
a' ,document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,
null ).singleNodeValue;
but for some reason it's returning the < a> from the < li> with the
class of "current" rather than the next page's < a> (which is
http://forums.whirlpool.net.au/forum-replies.cfm?t=977718&p=43 )
Can anyone show me where I've gone wrong?
Cheers.
an example page: http://forums.whirlpool.net.au/forum-replies.cfm?t=977718&p=42
This is the xpath I'm trying:
document.evaluate( '//ul[@class= "pagination"][1]//li[@class=
"current"][following-sibling::li][1][not( @class = "last" )]/
a' ,document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,
null ).singleNodeValue;
but for some reason it's returning the < a> from the < li> with the
class of "current" rather than the next page's < a> (which is
http://forums.whirlpool.net.au/forum-replies.cfm?t=977718&p=43 )
Can anyone show me where I've gone wrong?
Cheers.