WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
181727
WebDriver: two selenium alert tests are failing
https://bugs.webkit.org/show_bug.cgi?id=181727
Summary
WebDriver: two selenium alert tests are failing
Carlos Garcia Campos
Reported
2018-01-17 04:22:14 PST
imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py::testShouldAllowUsersToAcceptAnAlertInAFrame[WebKitGTK] FAILED imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py::testShouldAllowUsersToAcceptAnAlertInANestedFrame[WebKitGTK] FAILED Similar backtrace in both cases, it times out waiting for the alert. ___________________________________________________________________ testShouldAllowUsersToAcceptAnAlertInAFrame[WebKitGTK] ___________________________________________________________________ driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="e141617f-f07b-459a-93eb-dcd117d28cd4")>, pages = <conftest.Pages object at 0x7fb8b08bbfd0> @pytest.mark.xfail_chrome( reason='
https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500
') @pytest.mark.xfail_marionette(reason='Fails on travis') def testShouldAllowUsersToAcceptAnAlertInAFrame(driver, pages): pages.load("alerts.html") driver.switch_to.frame(driver.find_element(By.NAME, "iframeWithAlert")) driver.find_element_by_id("alertInFrame").click()
> alert = _waitForAlert(driver)
driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="e141617f-f07b-459a-93eb-dcd117d28cd4")> pages = <conftest.Pages object at 0x7fb8b08bbfd0> WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py:359: in _waitForAlert return WebDriverWait(driver, 3).until(EC.alert_is_present()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <selenium.webdriver.support.wait.WebDriverWait (session="e141617f-f07b-459a-93eb-dcd117d28cd4")> method = <selenium.webdriver.support.expected_conditions.alert_is_present object at 0x7fb8b091e9d0>, message = '' def until(self, method, message=''): """Calls the method provided with the driver as an argument until the \ return value is not False.""" screen = None stacktrace = None end_time = time.time() + self._timeout while True: try: value = method(self._driver) if value: return value except self._ignored_exceptions as exc: screen = getattr(exc, 'screen', None) stacktrace = getattr(exc, 'stacktrace', None) time.sleep(self._poll) if time.time() > end_time: break
> raise TimeoutException(message, screen, stacktrace)
E TimeoutException: Message: end_time = 1516188447.527704 message = '' method = <selenium.webdriver.support.expected_conditions.alert_is_present object at 0x7fb8b091e9d0> screen = None self = <selenium.webdriver.support.wait.WebDriverWait (session="e141617f-f07b-459a-93eb-dcd117d28cd4")> stacktrace = None value = False WebDriverTests/imported/selenium/py/selenium/webdriver/support/wait.py:80: TimeoutException
Attachments
Add attachment
proposed patch, testcase, etc.
Lauro Moura
Comment 1
2020-06-21 21:39:40 PDT
Committed
r263337
: <
https://trac.webkit.org/changeset/263337
>
Radar WebKit Bug Importer
Comment 2
2020-06-21 21:40:16 PDT
<
rdar://problem/64583394
>
Radar WebKit Bug Importer
Comment 3
2020-06-21 21:40:17 PDT
<
rdar://problem/64583395
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug