Hello everyone,
Using the Page Pattern in Geb, and with the following scenario, what would be your hindsights on the navigation between pages?
By using a waitFor statement on a Page, I want the waitFor to only end after the page has fully loaded.
My current solution is to either look at the page title or the page id.
The problem I have with this approach is that when running the tests in bulk, sometimes (randomly) an element is not displayed and the test fails right away, e.g. isDisplayed returns false.
I believe one of the approaches would be to wait for that particular element to be displayed but since that element is just part of a larger form, is there a specific way that I can say the following: "wait for the whole DOM to load" and the exit the waitFor statement.
Thanks in advance for your replies,
Nuno Santos.