-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] How to disable bringing page to front during launching. #4822
Comments
Well, we have a plenty of chat testing, and we have no issues running multiple browser instances. We have tests up to 4 users chatting at the same time, with no issues. What exact problem do you have? |
@creage the issue is focus stealing. For 2-3 edge case we tests manually and we spawn like new window after 5 sec interval. When testing manually we are typing and the browser come in front of face which is abit annoying. |
Playwright emulates all pages as focused, what exactly do you mean by focus stealing? |
Ah, you mean your scenarios are hybrid and the focus is stolen from the person performing the manual steps? Can I ask why you are typing manually? |
@pavelfeldman Yea its like when we are doing some work on one window and if another window is spawned focus is stolen from the person doing manual steps. Sometime we need to do it for accessibility check in headful mode and is mostly from devops team. |
I don't think we can do anything about it (focusing), but we could try helping automating those a11y checks! |
alright then I shall close this issue :) I also think its probably firefox or chrome issue Thanks. |
I also experience this; its pretty annoying to have jest running with |
There's a command I figured out on macOS to start iOS Simulator in the background which reliably disables it from taking focus. open -g -a Simulator However, I'm unsure how to launch Playwright's Chromium with this option |
Its Headful mode.
Currently I am doing web chat tests where I would like to test multiple context.
If I spawn new context it brings that page to front loosing the focus.
The issue is that newContext spawns a new window which has focus or something is in page that is calling page.bringToFront() when its launched.
Questions:
Its not a new issue I think and there are no answers available afaik.
puppeteer/puppeteer#5484
https://stackoverflow.com/questions/53501564/hide-browser-in-puppeteer
The text was updated successfully, but these errors were encountered: