Bug 181727 - WebDriver: two selenium alert tests are failing
Summary: WebDriver: two selenium alert tests are failing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-17 04:22 PST by Carlos Garcia Campos
Modified: 2020-06-21 21:40 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 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
Comment 1 Lauro Moura 2020-06-21 21:39:40 PDT
Committed r263337: <https://trac.webkit.org/changeset/263337>
Comment 2 Radar WebKit Bug Importer 2020-06-21 21:40:16 PDT
<rdar://problem/64583394>
Comment 3 Radar WebKit Bug Importer 2020-06-21 21:40:17 PDT
<rdar://problem/64583395>