Skip to content

Updating WebDriver execute[Async]Script tests for unhandled user prompts - #10401

Merged
shs96c merged 2 commits into
web-platform-tests:masterfrom
jimevans:script-user-prompts
Apr 17, 2018
Merged

shs96c merged 2 commits into
web-platform-tests:masterfrom
jimevans:script-user-prompts

Conversation

@jimevans

@jimevans jimevans commented Apr 10, 2018 •

Copy link
Copy Markdown
Contributor

When the WebDriver specification is modified with the contents of PR 1248
(w3c/webdriver#1248), the behavior of
implementations changes to handle user prompts on the next command after
an executeScript or executeAsyncScript command. This PR modifies the
tests for user prompts for those commands to match the spec behavior.

When the WebDriver specification is modified with the contents of PR #1248
(w3c/webdriver#1248), the behavior of
implementations changes to handle user prompts on the next command after
an executeScript or executeAsyncScript command. This commit modifies the
tests for user prompts for those commands to match the spec behavior.
@andreastt

Copy link
Copy Markdown
Member

Hm, I think there are a lot more tests that also need this update?

@jimevans

Copy link
Copy Markdown
Contributor Author

Shouldn't be. The spec change should only affect when an unhandled user prompt is displayed by a user-executed piece of JavaScript. All of the other unhandled user prompt tests already wait for the next command for the prompt to appear.

@andreastt

Copy link
Copy Markdown
Member

Right, sorry. You’re correct.

@shs96c
shs96c merged commit 32b05c8 into web-platform-tests:master Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants