mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-18 03:22:02 +02:00
Updated example of pagination
This commit is contained in:
parent
84c17b374f
commit
8da8ac2644
@ -11,7 +11,7 @@ LET vendorSelector = 'div > div > div > div.a-fixed-left-grid-col.a-col-right >
|
||||
LET priceSelector = 'div > div > div > div.a-fixed-left-grid-col.a-col-right > div:nth-child(4) > div.a-column.a-span7 > div:nth-child(1) > div:nth-child(3) > a > span.a-offscreen'
|
||||
LET altPriceSelector = 'div > div > div > div.a-fixed-left-grid-col.a-col-right > div:nth-child(2) > div.a-column.a-span7 > div:nth-child(1) > div:nth-child(3) > a > span.a-offscreen'
|
||||
LET pages = TO_INT(INNER_TEXT(amazon, '#pagn > span.pagnDisabled'))
|
||||
PRINT(pages)
|
||||
|
||||
LET result = (
|
||||
FOR pageNum IN 1..pages
|
||||
LET clicked = pageNum == 1 ? false : CLICK(amazon, nextBtnSelector)
|
||||
|
Loading…
Reference in New Issue
Block a user