1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-18 23:47:48 +02:00
ferret/examples/while.fql

15 lines
424 B
Plaintext
Raw Normal View History

let page = document("https://github.com/marketplace/category/api-management", { driver: "cdp"})
LET nextButtonSelector = '[data-test-selector="pagination"] .btn:nth-child(2)'
LET resultsSelector = 'a[data-hydro-click*="search_result.click"]'
FOR c WHILE attr(element(nextButtonSelector), 'disabled') == none
NEXT click(nextButtonSelector)
FOR el IN ELEMENTS(page, resultsSelector)
RETURN el.innerText