[Webkit-unassigned] [Bug 175261] Web Automation: setUserInputForCurrentJavaScriptPrompt should fail if current dialog is not a prompt

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 7 04:12:23 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=175261

--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com> ---
This causes test testSettingTheValueOfAnAlertThrows to fail:

_______________________________________________________________________ testSettingTheValueOfAnAlertThrows[WebKitGTK] ________________________________________________________________________

driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="9ba3f06c-5437-4548-93de-bd4eb5c12f15")>, pages = <conftest.Pages object at 0x7f4785758950>

    @pytest.mark.xfail_chrome(
        reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=1353')
    @pytest.mark.xfail_phantomjs(
        reason='https://github.com/detro/ghostdriver/issues/20',
        raises=WebDriverException)
    def testSettingTheValueOfAnAlertThrows(driver, pages):
        pages.load("alerts.html")
        driver.find_element(By.ID, "alert").click()

        alert = _waitForAlert(driver)
        with pytest.raises(InvalidElementStateException):
>           alert.send_keys("cheese")
E           Failed: DID NOT RAISE <class 'selenium.common.exceptions.InvalidElementStateException'>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170807/b3f070b0/attachment.html>


More information about the webkit-unassigned mailing list