Bug 181727
Summary: | WebDriver: two selenium alert tests are failing | ||
---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> |
Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bburg, lmoura, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Carlos Garcia Campos
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
Committed r263337: <https://trac.webkit.org/changeset/263337>
Radar WebKit Bug Importer
<rdar://problem/64583394>
Radar WebKit Bug Importer
<rdar://problem/64583395>