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

Consider specifying WebDriver BiDi modules for automated testing #147

Open
OrKoN opened this issue Nov 20, 2024 · 1 comment
Open

Consider specifying WebDriver BiDi modules for automated testing #147

OrKoN opened this issue Nov 20, 2024 · 1 comment

Comments

@OrKoN
Copy link

OrKoN commented Nov 20, 2024

With crrev.com/c/6021359 landing for chrome-headless-shell, there is now a way to test web applications with various screen configurations without having the physical devices or resorting to other ways to emulate them on the operating system level. Although this works for the headless shell, there is currently no standard way for developers to test Window Management in major browsers.

Given that it might be difficult to set up a test environment for web apps relying on various screen configurations, I think it would be great if this specification defined how a test interface should look like and how it should integrate with the rest of the implementation.

WebDriver BiDi standard already has some window management capabilities:

There are a few examples of external specifications extending WebDriver BiDi already:

@michaelwasserman
Copy link
Member

Thanks for pointing that out!

Our hope was to add WebDriver support for configuring OS-level virtual screens via Chromium's VirtualDisplayUtil, where supported.

Otherwise, mocking display configurations for the ScreenDetails API's source-of-truth (or even that of the browser itself) could be of limited use. Past WPTs mocked the API's data, but that pattern unfortunately didn't align with a Chromium re-implementation and the WPTs and mock interface were removed.

See Chromium's multi-screen testing docs: https://crsrc.org/c/docs/ui/display/multiscreen_testing.md
Unfortunately, I'm not aware of an active roadmap to add WPTs or testing guidance and support here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants