[Webkit-unassigned] [Bug 188118] [GTK] Many WebDriver tests are failing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 27 12:51:57 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188118
--- Comment #4 from Michael Catanzaro <mcatanzaro at igalia.com> ---
__________________________ test_handle_prompt_accept ___________________________
new_session = <function create_session at 0x7f60619b5d70>
add_browser_capabilites = <function update_capabilities at 0x7f60619b5b18>
def test_handle_prompt_accept(new_session, add_browser_capabilites):
_, session = new_session({"capabilities": {
"alwaysMatch": add_browser_capabilites({"unhandledPromptBehavior": "accept"})}})
session.window_handle = create_window(session)()
session.url = inline("<title>WD doc title</title>")
create_dialog(session)("alert", text="dismiss #1", result_var="dismiss1")
response = close(session)
assert response.status == 200
> assert_dialog_handled(session, "dismiss #1")
_ = {'capabilities': {'browserName': 'MiniBrowser', 'browserVersion': '2.21.5', 'pageLoadStrategy': 'normal', 'platformName': 'linux', ...}, 'sessionId': '0ab3c417-b701-462d-bbbf-5590b1e34149'}
add_browser_capabilites = <function update_capabilities at 0x7f60619b5b18>
new_session = <function create_session at 0x7f60619b5d70>
response = <Responsetatus=200 body={"value": ["page-3DC2B05B-A549-41AC-B31B-E91082BCBA74"]}>
session = <Session 0ab3c417-b701-462d-bbbf-5590b1e34149>
WebDriverTests/imported/w3c/webdriver/tests/close_window/user_prompts.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
session = <Session 0ab3c417-b701-462d-bbbf-5590b1e34149>
expected_text = 'dismiss #1'
def assert_dialog_handled(session, expected_text):
result = session.transport.send("GET",
"session/%s/alert/text" % session.session_id)
# If there were any existing dialogs prior to the creation of this
# fixture's dialog, then the "Get Alert Text" command will return
# successfully. In that case, the text must be different than that
# of this fixture's dialog.
try:
assert_error(result, "no such alert")
except:
> assert (result.status == 200 and
result.body["value"] != expected_text), (
"Dialog with text '%s' was not handled." % expected_text)
E AssertionError: Dialog with text 'dismiss #1' was not handled.
E assert (404 == 200)
E + where 404 = <Response status=404 error=<NoSuchWindowException http_status=404>>.status
expected_text = 'dismiss #1'
result = <Response status=404 error=<NoSuchWindowException http_status=404>>
session = <Session 0ab3c417-b701-462d-bbbf-5590b1e34149>
WebDriverTests/imported/w3c/webdriver/tests/support/asserts.py:101: AssertionError
--
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/20180727/1ecaa7aa/attachment.html>
More information about the webkit-unassigned
mailing list