Search code examples
node.jsselenium-webdriverwebdriverwebdriver-io

Webdriver.io/Selenium tests fail when the window is in the background on Chrome 87


I've just upgraded to the latest version of Chrome 87. My Webdriver.io/Selenium tests used to run fine regardless of if the Chrome window was in the foreground or the background. Now, after upgrading, the tests pass if the window is in the foreground, but not if it's in the background.

I'm not minimizing the Chrome window running my tests. I'm just pressing Alt+Tab so that my IDE is in front of Chrome and it's behind.

I know Chrome 87 has a new "feature" where it uses less CPU if it's not in the foreground. Is there a way to turn this off with either Chrome or Chromedriver settings?

It seems that my test is finding the button to click on, but Chrome isn't registering the click.


Solution

  • the latest chrome - chromedriver has resolved this issue enter image description here