PUBLIC   marks

ON THIS LINK

Autopager - Create new ap rule for page without "next" in links - teesoft, make software to a tee

by decembre
This works on AutoPager 0.5.1.4 or newer version. This is the recording of the steps to create the rule for http://www.pspad.com/en/pspad-extensions.php. This demo shows how to create AutoPager rules for the pages which don't have "Next" in links. They only have a navbar includes all the page numbers like this: Page: [1], 2, 3, 4. The final link xpath get in this tutorial is: //div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1] Steps explains: //div[@id='obspoz']/p :select the navbar. //div[@id='obspoz']/p/text() : select the texts in the navbar since current page number does not have a node //div[@id='obspoz']/p/text()[contains(.,'[')] : select the text for the current page number. It will be easier if the current page number has a node, for example if it's a span with class='current': //div[@id='obspoz']/p/span[@class='current']. //div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1] : select the first link after the current page number text.

Comments

No comment on this link yet. React !


PUBLIC TAGS
on this link

autopager   extension   firefox   tutorial   tutoriel   xpath  

BY

decembre
the 18/08/2009 at 00:30