on-internet
← Community

Getting "Exception UnexpectedAlertPresentException: Alert Text: None" and then "Exception NoAlertPresent" when I try to handle that alert

Stack Overflow ·

We're doing automation scripts using the following: behave==1.2.5 splinter==0.7.7 firefox headless browser When navigating to a specific page, we're executing the following code: browser = context.browser selector_button_checkout = "//*[@id='cart']//div[contains(@class, 'button button-3 localizejs') and text()='CHECKOUT']" with browser.get_iframe(0) as iframe: assert iframe.is_element_present_by_xpath(selector_button_checkout, wait_time=30) We're getting this error: packages/selenium/webdriver/remote/errorhandler.py", line 237, in check_response raise exception_class(message, screen, stacktrac

Comments

Sign in or sign up to comment and upvote.

No comments yet.