Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testdriver support for WebDriver BiDi #45823

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

sadym-chromium
Copy link
Contributor

@sadym-chromium sadym-chromium commented Apr 22, 2024

Implement RFC 185: Add WebDriver BiDi support to testdriver.js. Based on #44649.

Addition to the RFC:

  • Decline and fail test on user prompt in test window.

Open question:

  • How to handle infrastructure/webdriver/bidi tests?

Blocked by:

@sadym-chromium sadym-chromium force-pushed the sadym/testdriver-bidi-implementation branch 22 times, most recently from c8c1c2b to 1376a29 Compare April 29, 2024 12:57
@sadym-chromium sadym-chromium force-pushed the sadym/testdriver-bidi-implementation branch 5 times, most recently from f053493 to d28adf8 Compare May 2, 2024 11:14
@sadym-chromium sadym-chromium force-pushed the sadym/testdriver-bidi-implementation branch 2 times, most recently from fb2013f to b8390b8 Compare May 23, 2024 08:53
@sadym-chromium sadym-chromium force-pushed the sadym/testdriver-bidi-implementation branch from 2f4f00d to 222b7ad Compare August 5, 2024 09:15
@foolip foolip merged commit ce813a7 into master Aug 5, 2024
42 checks passed
@foolip foolip deleted the sadym/testdriver-bidi-implementation branch August 5, 2024 12:02
jonathan-j-lee added a commit to jonathan-j-lee/wpt that referenced this pull request Sep 17, 2024
Starting in web-platform-tests#45823, `create_context_action()` wraps `create_action()` in
`testdriver-extra.js`. Some methods still pass the old `create_action()`
arguments to `create_context_action()`, which incorrectly assigns
`__wptrunner_id` to the params object and not the `WindowProxy`. This
causes `TestDriverProtocolPart.switch_to_window()` to fail to find the
requested window [1].

[0]: https://github.com/web-platform-tests/wpt/blob/2a471e0d/tools/wptrunner/wptrunner/testdriver-extra.js#L85
[1]: https://wpt.fyi/results/device-posture/device-posture-clear.https.html?run_id=5117148234252288&run_id=5157553306861568&run_id=5072332666437632&run_id=5173437035446272
jonathan-j-lee added a commit that referenced this pull request Sep 17, 2024
Starting in #45823, `create_context_action()` wraps `create_action()` in
`testdriver-extra.js`. Some methods still pass the old `create_action()`
arguments to `create_context_action()`, which incorrectly assigns
`__wptrunner_id` to the params object [0] and not the `WindowProxy`.
This causes `TestDriverProtocolPart.switch_to_window()` to fail to find
the requested window [1].

[0]: https://github.com/web-platform-tests/wpt/blob/2a471e0d/tools/wptrunner/wptrunner/testdriver-extra.js#L85
[1]: https://wpt.fyi/results/device-posture/device-posture-clear.https.html?run_id=5117148234252288&run_id=5157553306861568&run_id=5072332666437632&run_id=5173437035446272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants