Question

I am working on a project using Sikuli and web-driver to automate testing of Oracle forms using Chrome as the browser.

It works well but at the end of each test when shutting down the browser i get prompted with the following:

Confirm Navigation Incorrect method of closing form. Any unsaved changes will be lost.... Are you sure you want to leave this page?

Is there a way to suppress this popup using chromium flags? Webdriver cannot by default handle the javascript popup.

Thanks

Était-ce utile?

La solution

If it is a javascript alert, then you can use the Alert class in Webdriver. Refer here. Otherwise you can use Sikuli to close the popup.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top