mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
fe7b45df6e
* Refactored networking * Some work * Added event loop * Renamed EventHandler to Handler * wip * Removed console logs * Added DOMManager * Refactored frame managment * Fixes * Fixed concurrency issues * Fixed unit tests * Improved EventLoop api * Some fixes * Refactored event loop. * Improved logic of initial page load * Cleaned up * Fixed linting issues * Fixed dom.Manager.Close * SOme works * Fixes * Removed fmt.Println statements * Refactored WaitForNavigation * Removed filter for e2e tests * Made Cookies Measurable * Made Cookies KeyedCollection * Fixes after code review * Updated e2e tests for iframes * Fixed iframe lookup in e2e tests * Added comments
21 lines
502 B
Plaintext
21 lines
502 B
Plaintext
LET url = @dynamic + "?redirect=/iframe&src=/events"
|
|
LET page = DOCUMENT(url, true)
|
|
LET frames = (
|
|
FOR f IN page.frames
|
|
FILTER f.name == "nested"
|
|
LIMIT 1
|
|
RETURN f
|
|
)
|
|
LET doc = FIRST(frames)
|
|
|
|
WAIT_ELEMENT(doc, "#page-events")
|
|
|
|
// with fixed timeout
|
|
CLICK(doc, "#wait-class-btn")
|
|
WAIT_CLASS(doc, "#wait-class-content", "alert-success")
|
|
|
|
// with random timeout
|
|
CLICK(doc, "#wait-class-random-btn")
|
|
WAIT_CLASS(doc, "#wait-class-random-content", "alert-success", 10000)
|
|
|
|
RETURN "" |