Skip to content

Default values of options for withNewWindow() and withWindow() should be configurable #406

Description

@mattbroekhuis

I'm a bit new to geb, so I might be missing something here... But we have a large testing codebase working with a site that relies heavily on new window popups. Most of the stuff looks like this

 withNewWindow({ countryPopup.click() }, page: CountryQuery, close: true) {
            at CountryQuery
            CountryQuery.with{
                //do stuff
            }
        }

Works fine on local dev laptops, but when we run on our selenium grid we get intermittent failures. My guess is that system load is high and response times are slow. Is there a way to set the default wait time for a new window to come up across the board? The documentation and reading source indicate that you have to explicitly set it on every single "withNewWindow" call.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions