Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add configurable wait time when grabbing root html element #269
Originally created by Craig Atkinson.
When running Geb tests on our slow CI server, we run into exceptions similar to this one about every 100 tests.
I tested a couple different ways to solve this exception, and one that has worked well thus far (stopped NoSuchElementExceptions in 9 runs of 179 tests) is to add a wait into the root html element parsing in BrowserBackedNavigatorFactory.
Notes on the implementation:
Config value to enable/disable the timeout
Config value for the timeout value
Wrap the exception that Selenium throws if the timeout is reached