ExecuteScript on an inactive tab makes it visible

By design Issue #6532605


Feb 12, 2016
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

  1. Start an Edge WebDriver session, navigate to a page

  2. Open a new tab (I do this via window.open on the page). Focus/visibility should be on the new tab.

  3. 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.


0 attachments

    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”

    • Hello,

      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.

      Best Wishes,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in