Meta:
OS: Windows 7
Selenium version: 2.52.0
Browser: Firefox v.45.4.0
Geb version: 1.0
Groovy version: 2.4.6

Expected Behavior:
Test should throw UnhandledAlertException

Actual Behavior:
Creating module without Navigator context is silently accepting alert

Steps to reproduce:
import geb.Browser

Browser.drive {
    go "http://www.gebish.org/";

    js.exec('alert("ups!")')
    module(SomeSimpleModule)

    assert title == "Geb - Very Groovy Browser Automation"
}

I think the above script should not pass and should throw the 
UnhandledAlertException. But creating module this way:
module(SomeSimpleModule)
is silently accepting alert instead of throwing UnhandledAlertException.

So the question is: bug or not?

-- 
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/dd5245ab-a587-4d43-b92e-9033bcf970ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to