<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>181727</bug_id>
          
          <creation_ts>2018-01-17 04:22:14 -0800</creation_ts>
          <short_desc>WebDriver: two selenium alert tests are failing</short_desc>
          <delta_ts>2020-06-21 21:40:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>lmoura</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1389964</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-01-17 04:22:14 -0800</bug_when>
    <thetext>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 = &lt;selenium.webdriver.webkitgtk.webdriver.WebDriver (session=&quot;e141617f-f07b-459a-93eb-dcd117d28cd4&quot;)&gt;, pages = &lt;conftest.Pages object at 0x7fb8b08bbfd0&gt;

    @pytest.mark.xfail_chrome(
        reason=&apos;https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500&apos;)
    @pytest.mark.xfail_marionette(reason=&apos;Fails on travis&apos;)
    def testShouldAllowUsersToAcceptAnAlertInAFrame(driver, pages):
        pages.load(&quot;alerts.html&quot;)
        driver.switch_to.frame(driver.find_element(By.NAME, &quot;iframeWithAlert&quot;))
        driver.find_element_by_id(&quot;alertInFrame&quot;).click()
    
&gt;       alert = _waitForAlert(driver)

driver     = &lt;selenium.webdriver.webkitgtk.webdriver.WebDriver (session=&quot;e141617f-f07b-459a-93eb-dcd117d28cd4&quot;)&gt;
pages      = &lt;conftest.Pages object at 0x7fb8b08bbfd0&gt;

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 = &lt;selenium.webdriver.support.wait.WebDriverWait (session=&quot;e141617f-f07b-459a-93eb-dcd117d28cd4&quot;)&gt;
method = &lt;selenium.webdriver.support.expected_conditions.alert_is_present object at 0x7fb8b091e9d0&gt;, message = &apos;&apos;

    def until(self, method, message=&apos;&apos;):
        &quot;&quot;&quot;Calls the method provided with the driver as an argument until the \
            return value is not False.&quot;&quot;&quot;
        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, &apos;screen&apos;, None)
                stacktrace = getattr(exc, &apos;stacktrace&apos;, None)
            time.sleep(self._poll)
            if time.time() &gt; end_time:
                break
&gt;       raise TimeoutException(message, screen, stacktrace)
E       TimeoutException: Message:

end_time   = 1516188447.527704
message    = &apos;&apos;
method     = &lt;selenium.webdriver.support.expected_conditions.alert_is_present object at 0x7fb8b091e9d0&gt;
screen     = None
self       = &lt;selenium.webdriver.support.wait.WebDriverWait (session=&quot;e141617f-f07b-459a-93eb-dcd117d28cd4&quot;)&gt;
stacktrace = None
value      = False

WebDriverTests/imported/selenium/py/selenium/webdriver/support/wait.py:80: TimeoutException</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664927</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-06-21 21:39:40 -0700</bug_when>
    <thetext>Committed r263337: &lt;https://trac.webkit.org/changeset/263337&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664929</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-21 21:40:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/64583394&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664930</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-21 21:40:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/64583395&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>