Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible for selenium to have all the browser tabs focused simultaneously?

My project needs to have about 5 or 6 active tabs in each browser instance, is it possible for selenium to have each tab of a browser focused at the same time so, for example, video autoplay can continue to work on all tabs simultaneously?

I’m aware of driver.switchTo().window(); but that will just change the focus to another tab while I need something that will keep all active tabs in focus.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

No, Selenium can focus at only one tab at a time.

To switch focus to other tabs you would need to do window handling.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading