1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-04 10:35:08 +02:00
ferret/examples/dynamic-page.fql
Tim Voronov 6ec50c5e43
Bugfix/inner text html by selector (#347)
* Fixed inner text

* Fixed inner html

* Updated set inner html and inner text

* Changed mechanism of reading and writing inner text and html

* updated makefile

* Added e2e tests

* Updated makefile

* Updated changelog

* Reverted dynamic page example
2019-08-05 19:57:02 -04:00

12 lines
337 B
Plaintext

LET doc = DOCUMENT('https://soundcloud.com/charts/top', { driver: "cdp" })
WAIT_ELEMENT(doc, '.chartTrack__details', 5000)
LET tracks = ELEMENTS(doc, '.chartTrack__details')
FOR track IN tracks
RETURN {
artist: TRIM(INNER_TEXT(track, '.chartTrack__username')),
track: TRIM(INNER_TEXT(track, '.chartTrack__title'))
}