When load testing an application, it's very important to verify the page at each step of the test. This verification acts not only as a way to ensure you are in the correct part of the application under test, but also serves to anchor test timings to allow Element to correctly calculate and aggregate metrics such as the step response time.
Using complete strings
The easiest way to verify that a resulting page has been load successfully is to check some static text value that you know will apear once the page has loaded.
We can use the browser.wait command along with the By.visibleText option containing the static text we would like to validate against.
Or, you are able to use a simple text verification over 2 statements as follows:
Using partial strings
If part of the known text is likely to change, consider using the partial visible text matcher:
You are also able to wait for a specific object property on a resulting page load using a simple XPath query.