-
Notifications
You must be signed in to change notification settings - Fork 49
WaitForPageLoadedModifier
Maciej Laskowski edited this page Dec 4, 2017
·
3 revisions
Wait For Page Loaded Modifier waits until the page is loaded (all DOM elements are loaded) or a fixed amount of time is up. The idea of waiting for the page is to count the amount of elements [by findElements(By.xpath("//*"))
] on the current page state in the loop. If the number of elements has increased since the last checkout, continue the loop (or break if the timeout is reached). Else if the number of elements is still, assume the page has been loaded and finish waiting.
Module name: wait-for-page-loaded
No parameters.
! Important information |
---|
Timeout for waiting is 10000 milliseconds. The Page is checked every 1000 milliseconds. |
<?xml version="1.0" encoding="UTF-8" ?>
<suite name="test-suite" company="cognifide" project="project">
<test name="wait-for-page-loaded-test">
<collect>
...
<open />
...
<wait-for-page-loaded />
...
</collect>
<compare>
...
</compare>
<urls>
...
</urls>
</test>
...
<reports>
...
</reports>
</suite>
-
How To Use
-
Releases