Switch back to window does not bring it to foreground

New Contributor

Regarding the active tab handling, as far as I know previously in IE the switchTo.window() command will automatically bring the specific window to the foreground, while currently in Edge we have to do this manually. Is such tab activation process able to be done with webdriver, or do we have to reach other automation mechanisms?

Similarly, we also came across the screenshot issue when we did the following commands:

  • open a new window in a tab

  • switch back to the old window, by switchTo.window() command (old window not brought to foreground)

  • take screenshot of old window, ends up with black screen

The IEDriverServer we're using is IEDriverServer_Win32_4.0.0.

0 Replies