Closed
Bug 1745104
Opened 3 years ago
Closed 3 years ago
Intermittent /webdriver/tests/execute_script/user_prompts.py | test_accept[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1737282
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=360562942&repo=mozilla-esr91
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/TkQ1FifeSeytDMDW487Vrw/runs/0/artifacts/public/logs/live_backing.log
[task 2021-12-08T21:47:38.377Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py::test_default[prompt-None]
[task 2021-12-08T21:47:38.378Z] 21:47:38 INFO - PID 1295 | 1639000058344 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.378Z] 21:47:38 INFO - PID 1295 | 1639000058345 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window/rect {"width": 800, "height": 600}
[task 2021-12-08T21:47:38.379Z] 21:47:38 INFO - PID 1295 | 1639000058346 Marionette DEBUG 0 -> [0,44,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2021-12-08T21:47:38.380Z] 21:47:38 INFO - PID 1295 | 1639000058346 Marionette DEBUG 0 <- [1,44,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2021-12-08T21:47:38.380Z] 21:47:38 INFO - PID 1295 | 1639000058346 webdriver::server DEBUG <- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2021-12-08T21:47:38.381Z] 21:47:38 INFO - PID 1295 | 1639000058347 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/frame {"id": null}
[task 2021-12-08T21:47:38.382Z] 21:47:38 INFO - PID 1295 | 1639000058348 Marionette DEBUG 0 -> [0,45,"WebDriver:SwitchToFrame",{"id":null}]
[task 2021-12-08T21:47:38.383Z] 21:47:38 INFO - PID 1295 | 1639000058349 Marionette DEBUG 0 <- [1,45,null,{"value":null}]
[task 2021-12-08T21:47:38.383Z] 21:47:38 INFO - PID 1295 | 1639000058349 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.384Z] 21:47:38 INFO - PID 1295 | 1639000058352 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window/rect {"width": 800, "height": 600}
[task 2021-12-08T21:47:38.385Z] 21:47:38 INFO - PID 1295 | 1639000058353 Marionette DEBUG 0 -> [0,46,"WebDriver:SetWindowRect",{"height":600,"width":800}]
[task 2021-12-08T21:47:38.386Z] 21:47:38 INFO - PID 1295 | 1639000058353 Marionette DEBUG 0 <- [1,46,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2021-12-08T21:47:38.386Z] 21:47:38 INFO - PID 1295 | 1639000058353 webdriver::server DEBUG <- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2021-12-08T21:47:38.387Z] 21:47:38 INFO - PID 1295 | 1639000058355 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window/rect {"x": 100, "y": 100}
[task 2021-12-08T21:47:38.388Z] 21:47:38 INFO - PID 1295 | 1639000058355 Marionette DEBUG 0 -> [0,47,"WebDriver:SetWindowRect",{"x":100,"y":100}]
[task 2021-12-08T21:47:38.389Z] 21:47:38 INFO - PID 1295 | 1639000058356 Marionette DEBUG 0 <- [1,47,null,{"x":100,"y":100,"width":800,"height":600}]
[task 2021-12-08T21:47:38.390Z] 21:47:38 INFO - PID 1295 | 1639000058356 webdriver::server DEBUG <- 200 OK {"value":{"x":100,"y":100,"width":800,"height":600}}
[task 2021-12-08T21:47:38.391Z] 21:47:38 INFO - PID 1295 | 1639000058359 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/execute/async {"script": "\n let dialog_type = arguments[0];\n let text = arguments[1];\n\n setTimeout(function() {\n if (dialog_type == 'prompt') {\n window.dialog_return_value = window[dialog_type](text, '');\n } else {\n window.dialog_return_value = window[dialog_type](text);\n }\n }, 0);\n ", "args": ["prompt", "prompt"]}
[task 2021-12-08T21:47:38.393Z] 21:47:38 INFO - PID 1295 | 1639000058359 Marionette DEBUG 0 -> [0,48,"WebDriver:ExecuteAsyncScript",{"args":["prompt","prompt"],"script":"\n let dialog_type = arguments[0];\n ... window.dialog_return_value = window[dialog_type](text);\n }\n }, 0);\n "}]
[task 2021-12-08T21:47:38.394Z] 21:47:38 INFO - PID 1295 | 1639000058391 Marionette TRACE Received observer notification common-dialog-loaded
[task 2021-12-08T21:47:38.395Z] 21:47:38 INFO - PID 1295 | 1639000058391 Marionette DEBUG 0 <- [1,48,null,{"value":null}]
[task 2021-12-08T21:47:38.396Z] 21:47:38 INFO - PID 1295 | 1639000058392 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.397Z] 21:47:38 INFO - PID 1295 | 1639000058394 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/alert/text
[task 2021-12-08T21:47:38.398Z] 21:47:38 INFO - PID 1295 | 1639000058394 Marionette DEBUG 0 -> [0,49,"WebDriver:GetAlertText",{}]
[task 2021-12-08T21:47:38.399Z] 21:47:38 INFO - PID 1295 | 1639000058394 Marionette DEBUG 0 <- [1,49,null,{"value":"prompt"}]
[task 2021-12-08T21:47:38.401Z] 21:47:38 INFO - PID 1295 | 1639000058395 webdriver::server DEBUG <- 200 OK {"value":"prompt"}
[task 2021-12-08T21:47:38.402Z] 21:47:38 INFO - PID 1295 | 1639000058396 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/execute/sync {"script": "window.result = 1; return 1;", "args": []}
[task 2021-12-08T21:47:38.403Z] 21:47:38 INFO - PID 1295 | 1639000058397 Marionette DEBUG 0 -> [0,50,"WebDriver:ExecuteScript",{"args":[],"script":"window.result = 1; return 1;"}]
[task 2021-12-08T21:47:38.404Z] 21:47:38 INFO - PID 1295 | 1639000058400 Marionette TRACE Received event DOMModalDialogClosed
[task 2021-12-08T21:47:38.421Z] 21:47:38 INFO - PID 1295 | 1639000058418 Marionette DEBUG 0 <- [1,50,{"error":"unexpected alert open","message":"Dismissed user prompt dialog: prompt","stacktrace":"WebDriverError@chrome:/ ... ver/Errors.jsm:466:5\nGeckoDriver.prototype._handleUserPrompts@chrome://remote/content/marionette/driver.js:2659:13\n"},null]
[task 2021-12-08T21:47:38.422Z] 21:47:38 INFO - PID 1295 | 1639000058418 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unexpected alert open","message":"Dismissed user prompt dialog: prompt","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5\nUnexpectedAlertOpenError@chrome://remote/content/shared/webdriver/Errors.jsm:466:5\nGeckoDriver.prototype._handleUserPrompts@chrome://remote/content/marionette/driver.js:2659:13\n"}}
[task 2021-12-08T21:47:38.424Z] 21:47:38 INFO - PID 1295 | 1639000058420 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/alert/text
[task 2021-12-08T21:47:38.425Z] 21:47:38 INFO - PID 1295 | 1639000058420 Marionette DEBUG 0 -> [0,51,"WebDriver:GetAlertText",{}]
[task 2021-12-08T21:47:38.426Z] 21:47:38 INFO - PID 1295 | 1639000058421 Marionette DEBUG 0 <- [1,51,{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm: ... ote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"},null]
[task 2021-12-08T21:47:38.429Z] 21:47:38 INFO - PID 1295 | 1639000058421 webdriver::server DEBUG <- 404 Not Found {"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5\nNoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:382:5\nGeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2630:11\nGeckoDriver.prototype.getTextFromDialog@chrome://remote/content/marionette/driver.js:2575:8\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}
[task 2021-12-08T21:47:38.430Z] 21:47:38 INFO - PID 1295 | 1639000058423 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/execute/sync {"script": " return window.dialog_return_value;", "args": []}
[task 2021-12-08T21:47:38.431Z] 21:47:38 INFO - PID 1295 | 1639000058423 Marionette DEBUG 0 -> [0,52,"WebDriver:ExecuteScript",{"args":[],"script":" return window.dialog_return_value;"}]
[task 2021-12-08T21:47:38.432Z] 21:47:38 INFO - PID 1295 | 1639000058425 Marionette DEBUG 0 <- [1,52,null,{"value":null}]
[task 2021-12-08T21:47:38.433Z] 21:47:38 INFO - PID 1295 | 1639000058425 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.435Z] 21:47:38 INFO - PID 1295 | 1639000058426 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/execute/sync {"script": "return window.result;", "args": []}
[task 2021-12-08T21:47:38.436Z] 21:47:38 INFO - PID 1295 | 1639000058427 Marionette DEBUG 0 -> [0,53,"WebDriver:ExecuteScript",{"args":[],"script":"return window.result;"}]
[task 2021-12-08T21:47:38.437Z] 21:47:38 INFO - PID 1295 | 1639000058428 Marionette DEBUG 0 <- [1,53,null,{"value":null}]
[task 2021-12-08T21:47:38.438Z] 21:47:38 INFO - STDOUT: PASSED
[task 2021-12-08T21:47:38.439Z] 21:47:38 INFO - PID 1295 | 1639000058429 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.440Z] 21:47:38 INFO - PID 1295 | 1639000058431 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/timeouts {"implicit": 0}
[task 2021-12-08T21:47:38.441Z] 21:47:38 INFO - PID 1295 | 1639000058431 Marionette DEBUG 0 -> [0,54,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2021-12-08T21:47:38.442Z] 21:47:38 INFO - PID 1295 | 1639000058432 Marionette DEBUG 0 <- [1,54,null,{"value":null}]
[task 2021-12-08T21:47:38.443Z] 21:47:38 INFO - PID 1295 | 1639000058432 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.444Z] 21:47:38 INFO - PID 1295 | 1639000058433 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/timeouts {"pageLoad": 300000}
[task 2021-12-08T21:47:38.446Z] 21:47:38 INFO - PID 1295 | 1639000058434 Marionette DEBUG 0 -> [0,55,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2021-12-08T21:47:38.447Z] 21:47:38 INFO - PID 1295 | 1639000058434 Marionette DEBUG 0 <- [1,55,null,{"value":null}]
[task 2021-12-08T21:47:38.448Z] 21:47:38 INFO - PID 1295 | 1639000058434 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.449Z] 21:47:38 INFO - PID 1295 | 1639000058435 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/timeouts {"script": 30000}
[task 2021-12-08T21:47:38.450Z] 21:47:38 INFO - PID 1295 | 1639000058435 Marionette DEBUG 0 -> [0,56,"WebDriver:SetTimeouts",{"script":30000}]
[task 2021-12-08T21:47:38.451Z] 21:47:38 INFO - PID 1295 | 1639000058436 Marionette DEBUG 0 <- [1,56,null,{"value":null}]
[task 2021-12-08T21:47:38.452Z] 21:47:38 INFO - PID 1295 | 1639000058436 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.453Z] 21:47:38 INFO - PID 1295 | 1639000058437 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window
[task 2021-12-08T21:47:38.454Z] 21:47:38 INFO - PID 1295 | 1639000058438 Marionette DEBUG 0 -> [0,57,"WebDriver:GetWindowHandle",{}]
[task 2021-12-08T21:47:38.456Z] 21:47:38 INFO - PID 1295 | 1639000058438 Marionette DEBUG 0 <- [1,57,null,{"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}]
[task 2021-12-08T21:47:38.457Z] 21:47:38 INFO - PID 1295 | 1639000058438 webdriver::server DEBUG <- 200 OK {"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.458Z] 21:47:38 INFO - PID 1295 | 1639000058439 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window
[task 2021-12-08T21:47:38.459Z] 21:47:38 INFO - PID 1295 | 1639000058439 Marionette DEBUG 0 -> [0,58,"WebDriver:GetWindowHandle",{}]
[task 2021-12-08T21:47:38.460Z] 21:47:38 INFO - PID 1295 | 1639000058439 Marionette DEBUG 0 <- [1,58,null,{"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}]
[task 2021-12-08T21:47:38.462Z] 21:47:38 INFO - PID 1295 | 1639000058440 webdriver::server DEBUG <- 200 OK {"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.463Z] 21:47:38 INFO - PID 1295 | 1639000058441 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window/handles
[task 2021-12-08T21:47:38.464Z] 21:47:38 INFO - PID 1295 | 1639000058442 Marionette DEBUG 0 -> [0,59,"WebDriver:GetWindowHandles",{}]
[task 2021-12-08T21:47:38.465Z] 21:47:38 INFO - PID 1295 | 1639000058442 Marionette DEBUG 0 <- [1,59,null,["538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"]]
[task 2021-12-08T21:47:38.466Z] 21:47:38 INFO - PID 1295 | 1639000058442 webdriver::server DEBUG <- 200 OK {"value":["538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"]}
[task 2021-12-08T21:47:38.467Z] 21:47:38 INFO - PID 1295 | 1639000058443 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window {"handle": "538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.468Z] 21:47:38 INFO - PID 1295 | 1639000058444 Marionette DEBUG 0 -> [0,60,"WebDriver:SwitchToWindow",{"handle":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6","name":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}]
[task 2021-12-08T21:47:38.469Z] 21:47:38 INFO - PID 1295 | 1639000058444 Marionette DEBUG 0 <- [1,60,null,{"value":null}]
[task 2021-12-08T21:47:38.470Z] 21:47:38 INFO - PID 1295 | 1639000058444 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.472Z] 21:47:38 INFO - PID 1295 | 1639000058446 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/alert/dismiss {}
[task 2021-12-08T21:47:38.473Z] 21:47:38 INFO - PID 1295 | 1639000058446 Marionette DEBUG 0 -> [0,61,"WebDriver:DismissAlert",{}]
[task 2021-12-08T21:47:38.474Z] 21:47:38 INFO - PID 1295 | 1639000058447 Marionette DEBUG 0 <- [1,61,{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm: ... ote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"},null]
[task 2021-12-08T21:47:38.476Z] 21:47:38 INFO - PID 1295 | 1639000058447 webdriver::server DEBUG <- 404 Not Found {"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:181:5\nNoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:382:5\nGeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2630:11\nGeckoDriver.prototype.dismissDialog@chrome://remote/content/marionette/driver.js:2531:8\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}
[task 2021-12-08T21:47:38.477Z] 21:47:38 INFO - PID 1295 | 1639000058448 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window {"handle": "538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.479Z] 21:47:38 INFO - PID 1295 | 1639000058449 Marionette DEBUG 0 -> [0,62,"WebDriver:SwitchToWindow",{"handle":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6","name":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}]
[task 2021-12-08T21:47:38.480Z] 21:47:38 INFO - PID 1295 | 1639000058449 Marionette DEBUG 0 <- [1,62,null,{"value":null}]
[task 2021-12-08T21:47:38.481Z] 21:47:38 INFO - PID 1295 | 1639000058449 webdriver::server DEBUG <- 200 OK {"value":null}
[task 2021-12-08T21:47:38.482Z] 21:47:38 INFO - PID 1295 | 1639000058450 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window
[task 2021-12-08T21:47:38.483Z] 21:47:38 INFO - PID 1295 | 1639000058451 Marionette DEBUG 0 -> [0,63,"WebDriver:GetWindowHandle",{}]
[task 2021-12-08T21:47:38.484Z] 21:47:38 INFO - PID 1295 | 1639000058451 Marionette DEBUG 0 <- [1,63,null,{"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}]
[task 2021-12-08T21:47:38.484Z] 21:47:38 INFO - PID 1295 | 1639000058451 webdriver::server DEBUG <- 200 OK {"value":"538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.486Z] 21:47:38 INFO - PID 1295 | 1639000058452 webdriver::server DEBUG -> GET /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window/handles
[task 2021-12-08T21:47:38.487Z] 21:47:38 INFO - PID 1295 | 1639000058452 Marionette DEBUG 0 -> [0,64,"WebDriver:GetWindowHandles",{}]
[task 2021-12-08T21:47:38.487Z] 21:47:38 INFO - PID 1295 | 1639000058453 Marionette DEBUG 0 <- [1,64,null,["538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"]]
[task 2021-12-08T21:47:38.489Z] 21:47:38 INFO - PID 1295 | 1639000058453 webdriver::server DEBUG <- 200 OK {"value":["538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"]}
[task 2021-12-08T21:47:38.489Z] 21:47:38 INFO - PID 1295 | 1639000058454 webdriver::server DEBUG -> POST /session/3e075b80-0e57-c644-a9ac-11c64425d90e/window {"handle": "538bb9d9-100d-b54c-b4a4-2e1ed42b41d6"}
[task 2021-12-08T21:47:38.490Z] 21:47:38 INFO - STDOUT: =================================== FAILURES ===================================
[task 2021-12-08T21:47:38.493Z] 21:47:38 INFO - STDOUT: ____________________ test_accept[capabilities0-alert-None] _____________________
[task 2021-12-08T21:47:38.494Z] 21:47:38 INFO - STDOUT: check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7ffe570c4170>
[task 2021-12-08T21:47:38.495Z] 21:47:38 INFO - STDOUT: dialog_type = 'alert', retval = None
[task 2021-12-08T21:47:38.496Z] 21:47:38 INFO - STDOUT: @pytest.mark.capabilities({"unhandledPromptBehavior": "accept"})
[task 2021-12-08T21:47:38.497Z] 21:47:38 INFO - STDOUT: @pytest.mark.parametrize("dialog_type, retval", [
[task 2021-12-08T21:47:38.498Z] 21:47:38 INFO - STDOUT: ("alert", None),
[task 2021-12-08T21:47:38.499Z] 21:47:38 INFO - STDOUT: ("confirm", True),
[task 2021-12-08T21:47:38.500Z] 21:47:38 INFO - STDOUT: ("prompt", ""),
[task 2021-12-08T21:47:38.501Z] 21:47:38 INFO - STDOUT: ])
[task 2021-12-08T21:47:38.502Z] 21:47:38 INFO - STDOUT: def test_accept(check_user_prompt_closed_without_exception, dialog_type, retval):
[task 2021-12-08T21:47:38.502Z] 21:47:38 INFO - STDOUT: > check_user_prompt_closed_without_exception(dialog_type, retval)
[task 2021-12-08T21:47:38.503Z] 21:47:38 INFO - STDOUT: check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7ffe570c4170>
[task 2021-12-08T21:47:38.505Z] 21:47:38 INFO - STDOUT: dialog_type = 'alert'
[task 2021-12-08T21:47:38.505Z] 21:47:38 INFO - STDOUT: retval = None
[task 2021-12-08T21:47:38.506Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py
[task 2021-12-08T21:47:38.507Z] 21:47:38 INFO - STDOUT: :72:
[task 2021-12-08T21:47:38.508Z] 21:47:38 INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-12-08T21:47:38.508Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py
[task 2021-12-08T21:47:38.508Z] 21:47:38 INFO - STDOUT: :22: in check_user_prompt_closed_without_exception
[task 2021-12-08T21:47:38.509Z] 21:47:38 INFO - STDOUT: create_dialog(dialog_type, text=dialog_type)
[task 2021-12-08T21:47:38.509Z] 21:47:38 INFO - STDOUT: create_dialog = <function create_dialog.<locals>.create_dialog at 0x7ffe571657a0>
[task 2021-12-08T21:47:38.510Z] 21:47:38 INFO - STDOUT: dialog_type = 'alert'
[task 2021-12-08T21:47:38.510Z] 21:47:38 INFO - STDOUT: retval = None
[task 2021-12-08T21:47:38.511Z] 21:47:38 INFO - STDOUT: session = <Session 4c1ecf74-4450-0a4b-828d-e863ab3b1aba>
[task 2021-12-08T21:47:38.512Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/support/fixtures.py
[task 2021-12-08T21:47:38.513Z] 21:47:38 INFO - STDOUT: :267: in create_dialog
[task 2021-12-08T21:47:38.513Z] 21:47:38 INFO - STDOUT: """, args=(dialog_type, text))
[task 2021-12-08T21:47:38.514Z] 21:47:38 INFO - STDOUT: dialog_type = 'alert'
[task 2021-12-08T21:47:38.515Z] 21:47:38 INFO - STDOUT: session = <Session 4c1ecf74-4450-0a4b-828d-e863ab3b1aba>
[task 2021-12-08T21:47:38.516Z] 21:47:38 INFO - STDOUT: text = 'alert'
[task 2021-12-08T21:47:38.517Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2021-12-08T21:47:38.518Z] 21:47:38 INFO - STDOUT: :19: in inner
[task 2021-12-08T21:47:38.518Z] 21:47:38 INFO - STDOUT: return func(self, *args, **kwargs)
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - STDOUT: args = ('\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - ' let text = arguments[1];\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - '\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - ' setTimeout(function() {\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - ' } else {\n'
[task 2021-12-08T21:47:38.520Z] 21:47:38 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-08T21:47:38.521Z] 21:47:38 INFO - ' }\n'
[task 2021-12-08T21:47:38.521Z] 21:47:38 INFO - ' }, 0);\n'
[task 2021-12-08T21:47:38.521Z] 21:47:38 INFO - ' ',)
[task 2021-12-08T21:47:38.522Z] 21:47:38 INFO - STDOUT: func = <function Session.execute_async_script at 0x7ffe5402d290>
[task 2021-12-08T21:47:38.522Z] 21:47:38 INFO - STDOUT: kwargs = {'args': ('alert', 'alert')}
[task 2021-12-08T21:47:38.523Z] 21:47:38 INFO - STDOUT: self = <Session 4c1ecf74-4450-0a4b-828d-e863ab3b1aba>
[task 2021-12-08T21:47:38.524Z] 21:47:38 INFO - STDOUT: session = <Session 4c1ecf74-4450-0a4b-828d-e863ab3b1aba>
[task 2021-12-08T21:47:38.525Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2021-12-08T21:47:38.526Z] 21:47:38 INFO - STDOUT: :772: in execute_async_script
[task 2021-12-08T21:47:38.527Z] 21:47:38 INFO - STDOUT: return self.send_session_command("POST", "execute/async", body)
[task 2021-12-08T21:47:38.527Z] 21:47:38 INFO - STDOUT: args = ('alert', 'alert')
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - STDOUT: body = {'args': ('alert', 'alert'),
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - 'script': '\n'
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - ' let text = arguments[1];\n'
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - '\n'
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - ' setTimeout(function() {\n'
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - ' window.dialog_return_value = '
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-08T21:47:38.529Z] 21:47:38 INFO - ' } else {\n'
[task 2021-12-08T21:47:38.530Z] 21:47:38 INFO - ' window.dialog_return_value = '
[task 2021-12-08T21:47:38.530Z] 21:47:38 INFO - 'window[dialog_type](text);\n'
[task 2021-12-08T21:47:38.530Z] 21:47:38 INFO - ' }\n'
[task 2021-12-08T21:47:38.530Z] 21:47:38 INFO - ' }, 0);\n'
[task 2021-12-08T21:47:38.530Z] 21:47:38 INFO - ' '}
[task 2021-12-08T21:47:38.531Z] 21:47:38 INFO - STDOUT: script = ('\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' let text = arguments[1];\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - '\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' setTimeout(function() {\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - " window.dialog_return_value = window[dialog_type](text, '');\n"
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' } else {\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' window.dialog_return_value = window[dialog_type](text);\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' }\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' }, 0);\n'
[task 2021-12-08T21:47:38.532Z] 21:47:38 INFO - ' ')
[task 2021-12-08T21:47:38.533Z] 21:47:38 INFO - STDOUT: self = <Session 4c1ecf74-4450-0a4b-828d-e863ab3b1aba>
[task 2021-12-08T21:47:38.534Z] 21:47:38 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2021-12-08T21:47:38.535Z] 21:47:38 INFO - STDOUT: :640: in send_session_command
[task 2021-12-08T21:47:38.536Z] 21:47:38 INFO - STDOUT: return self.send_command(method, url, body, timeout)
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - STDOUT: body = {'args': ('alert', 'alert'),
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - 'script': '\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' let dialog_type = arguments[0];\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' let text = arguments[1];\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - '\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' setTimeout(function() {\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - " if (dialog_type == 'prompt') {\n"
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' window.dialog_return_value = '
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - "window[dialog_type](text, '');\n"
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' } else {\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' window.dialog_return_value = '
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - 'window[dialog_type](text);\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' }\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' }, 0);\n'
[task 2021-12-08T21:47:38.538Z] 21:47:38 INFO - ' '}
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO -
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_accept[capabilities0-alert-None] - webdriver.error.JavascriptErrorException: javascript error (500): JavaScriptError: Document was unloaded
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7ffe570c4170>
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - dialog_type = 'alert', retval = None
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO -
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - @pytest.mark.capabilities({"unhandledPromptBehavior": "accept"})
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - @pytest.mark.parametrize("dialog_type, retval", [
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - ("alert", None),
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - ("confirm", True),
[task 2021-12-08T21:47:38.551Z] 21:47:38 INFO - ("prompt", ""),
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - ])
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - def test_accept(check_user_prompt_closed_without_exception, dialog_type, retval):
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - > check_user_prompt_closed_without_exception(dialog_type, retval)
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO -
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - check_user_prompt_closed_without_exception = <function check_user_prompt_closed_without_exception.<locals>.check_user_prompt_closed_without_exception at 0x7ffe570c4170>
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - dialog_type = 'alert'
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - retval = None
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO -
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:72:
[task 2021-12-08T21:47:38.552Z] 21:47:38 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 2•2 years ago
|
||
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•