-
Notifications
You must be signed in to change notification settings - Fork 3k
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
testdriver.js APIs for opening/closing/switching/resizing windows #10666
Comments
Looking forward to this API! Will it be possible for the future testdriver.js to simulate interaction between browsers and accessibility tools? f.ex. when the window is fully obscured by an accessibility tool. |
What's the use-case for this? |
Open PRs for this:
I think the main one is minimizing the window to test @siusin, did you have a specific use case in mind? |
Since new PRs will have to be created, I'll close the PRs listed and treat it as part of this issue to send new ones, or one big PR perhaps. |
It'd be nice if the UA is able to detect it when it's being obscured by another application, is it part of the get-current-window handle issue? One use case is: |
That sounds like a much harder issue to solve (given you need to be able to run another application and control its window position/size). |
I understand, that's going to be a bonus :) |
Having played a bit with headless Chrome I wonder if there will be a problem here: if these APIs require a window manager and real windows to really work, and tests depend on them, then we can't ever run the tests headless, which would probably be nicer than our current behavior of windows flying around and taking focus. |
@shubhie will you need this capability to test page lifecycle, or will you rely entirely on new WebDriver APIs? Downgrading this issue to backlog since we don't yet have a clear use case. |
That sounds reasonable, not sure if this is blocking us. |
Renaming to also cover window resizing: https://w3c.github.io/webdriver/#set-window-rect |
For resizing windows, there is also https://drafts.csswg.org/cssom-view/#dom-window-resizeto. That doesn't work in all contexts, but presumably does at least for a window opened by |
This is a tracker bug for 3 testdriver APIs
The text was updated successfully, but these errors were encountered: