Steps to reproduce
Start an Edge WebDriver session, navigate to a page
Open a new tab (I do this via window.open on the page). Focus/visibility should be on the new tab.
ExecuteScript on the original tab
Our WebDriver switches the first tab back to active. ChromeDriver does not.
This is an issue when I need visibility on the new tab (requestAnimationFrame code that will not run otherwise).
I have a repro exe/project if needed.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Mara P.”
Changed Title from “WebDriver makes tab visible during ExecuteScript” to “makes tab visible during ExecuteScript”
Changed Assigned To from “Mara P.” to “Clay M.”
Changed Status to “Confirmed”
Changed Steps to Reproduce
Changed Assigned To from “Clay M.” to “Ben B.”
Changed Title from “makes tab visible during ExecuteScript” to “ExecuteScript on an inactive tab makes it visible”
Changed Assigned To from “Ben B.” to “Navin A.”
Changed Assigned To from “Navin A.” to “Clay M.”
Changed Assigned To from “Clay M.” to “Steven F.”
Changed Status from “Confirmed” to “By design”
Thank you for providing this information about the issue. Currently, we do not plan to release a fix for this problem. Many aspects would need to be disabled in order to run commands against the tab not in view without swapping to it. This is an unspec’d area currently and intentionally as each browser will have different implementations. Please update this case if you can provide new information for us to consider.
The MS Edge Team