Bug 1584927 - [marionette] Handle user prompts in "Take Element Screenshot" and "Take Screenshot" commands. r=webdriver-reviewers,ato

Differential Revision: https://phabricator.services.mozilla.com/D48511

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henrik Skupin 2019-10-09 09:43:13 +00:00
Родитель 72207a272d
Коммит 0082e28845
3 изменённых файлов: 1 добавлений и 110 удалений

Просмотреть файл

@ -3019,6 +3019,7 @@ GeckoDriver.prototype.deleteSession = function() {
*/
GeckoDriver.prototype.takeScreenshot = async function(cmd) {
let win = assert.open(this.getCurrentWindow());
await this._handleUserPrompts();
let { id, full, hash, scroll } = cmd.parameters;
let format = hash ? capture.Format.Hash : capture.Format.Base64;

Просмотреть файл

@ -1,55 +0,0 @@
[user_prompts.py]
[test_accept_and_notify[capabilities0-prompt-\]]
expected: FAIL
[test_dismiss[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-prompt-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-confirm-False\]]
expected: FAIL
[test_default[alert-None\]]
expected: FAIL
[test_accept[capabilities0-confirm-True\]]
expected: FAIL
[test_accept_and_notify[capabilities0-confirm-True\]]
expected: FAIL
[test_accept[capabilities0-alert-None\]]
expected: FAIL
[test_ignore[capabilities0-prompt\]]
expected: FAIL
[test_default[confirm-False\]]
expected: FAIL
[test_ignore[capabilities0-alert\]]
expected: FAIL
[test_ignore[capabilities0-confirm\]]
expected: FAIL
[test_accept_and_notify[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss[capabilities0-prompt-None\]]
expected: FAIL
[test_accept[capabilities0-prompt-\]]
expected: FAIL
[test_default[prompt-None\]]
expected: FAIL
[test_dismiss[capabilities0-confirm-False\]]
expected: FAIL

Просмотреть файл

@ -1,55 +0,0 @@
[user_prompts.py]
[test_accept_and_notify[capabilities0-prompt-\]]
expected: FAIL
[test_dismiss[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-prompt-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss_and_notify[capabilities0-confirm-False\]]
expected: FAIL
[test_default[alert-None\]]
expected: FAIL
[test_accept[capabilities0-confirm-True\]]
expected: FAIL
[test_accept_and_notify[capabilities0-confirm-True\]]
expected: FAIL
[test_accept[capabilities0-alert-None\]]
expected: FAIL
[test_ignore[capabilities0-prompt\]]
expected: FAIL
[test_default[confirm-False\]]
expected: FAIL
[test_ignore[capabilities0-alert\]]
expected: FAIL
[test_ignore[capabilities0-confirm\]]
expected: FAIL
[test_accept_and_notify[capabilities0-alert-None\]]
expected: FAIL
[test_dismiss[capabilities0-prompt-None\]]
expected: FAIL
[test_accept[capabilities0-prompt-\]]
expected: FAIL
[test_default[prompt-None\]]
expected: FAIL
[test_dismiss[capabilities0-confirm-False\]]
expected: FAIL