mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
bd07b84736
* Added new syntax and iterator * Added FOR-WHILE loop * Added 'FOR-DO-WHILE loop'
15 lines
424 B
Plaintext
15 lines
424 B
Plaintext
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
|
|
|
|
|
|
|
|
|