On Wed, Nov 2, 2016 at 11:12 AM, Adam Bęben <[email protected]> wrote:

Your script is running with exception as well on my machine. It turns out
> that I had to add baseNavigatorWaiting property in Browser config to
> reproduce issue with your script
>

That explains a lot.

When using Firefox driver UnhandledAlertException is thrown when executing
any Webdriver command that does not target the alert while an alert is
displayed. At the point of throwing that exception the alert is also
automatically dismissed by the driver. Calling the module(Class) method on
a page object (which you are in essence doing in your script down to method
delegation on Browser instances) and not on a Navigator requires Geb to
obtain a base navigator which is the root element of your document to then
use it as the module base (
http://www.gebish.org/manual/current/#base-and-context). If you set the
baseNavigatorWaiting property then obtaining the base navigator is wrapped
in a waitFor statement which swallows any exceptions (as explained in
http://www.gebish.org/manual/current/api/geb/waiting/Wait.html#waitFor(Closure%3CT%3E)
).

The above is causing the behaviour you're seeing.

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQQmxY4SXn5Jxav71h3OLyd-73ftg-6mvGz8RRRDFZTz%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to