diff --git a/examples/pagination.fql b/examples/pagination.fql index 268ff852..e0098e04 100644 --- a/examples/pagination.fql +++ b/examples/pagination.fql @@ -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)