1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-20 03:29:51 +02:00
Tim Voronov 162dd07346
Feature/425 iframe navigation (#535)
* Updated navigation logic

* Fixed goroutine deadlock

* Fixed closing chan

* Added support of waiting for individual frame navigation

* Updated EventLoop API in order to avoid double closing of event sources

* Fixed attr retrieval

* Removed redundant println

* Updated DOM Readiness check
2020-07-13 14:13:03 -04:00

10 lines
239 B
Plaintext

LET url = @lab.cdn.dynamic + "?redirect=/iframe"
LET page = DOCUMENT(url, { driver: 'cdp', timeout: 5000 })
LET frames = (
FOR frame IN page.frames
FILTER frame.name == "nested"
RETURN frame
)
RETURN T::LEN(frames, 1)