You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call browser.get_alert() on a page without an alert, instead of None, it returns NoAlertPresentException: Message: No alert is present-- contrary to the documentation.
Ie.,
from splinter import Browser
browser = Browser()
browser.visit('https://www.google.com')
browser.get_alert()
It'd be nice for this to work as documented, since then I'd have a simple way to check that there isn't an active alert on the page, although it's not a huge problem.
Is the problem with the code, or with the documentation? It looks like .get_alert() is using a deprecated Selenium method, though I'm not sure if that's the cause of the issue or not.
The text was updated successfully, but these errors were encountered:
When I call
browser.get_alert()
on a page without an alert, instead ofNone
, it returnsNoAlertPresentException: Message: No alert is present
-- contrary to the documentation.Ie.,
It'd be nice for this to work as documented, since then I'd have a simple way to check that there isn't an active alert on the page, although it's not a huge problem.
Is the problem with the code, or with the documentation? It looks like
.get_alert()
is using a deprecated Selenium method, though I'm not sure if that's the cause of the issue or not.The text was updated successfully, but these errors were encountered: