After the last Chrome update message "Look for and connect to any device on your local network" prevents me from running testcafe tests in Chrome.
The browser setting that affects this is supposedly configured here chrome://flags/#local-network-access-check.
But TestCafe loads the default browser without my account or settings. Is there a way to make tests run automatically without encountering this warning?
Look for and connect to any device on your local network message
In addition to this, the .switchToIframe() method began to return errors "Content of the iframe to which you are switching did not load."
P.S. The tests still work in Opera, so I'm running them there. But I'd like to be able to use Google Chrome too.
P.S.S. Setting registry values fixes message, but .switchToIframe() method still doesn't work
We struggled with this for quite a while too. Google discusses an option about using registry values for this in this article:
https://chromeenterprise.google/policies/#LocalNetworkAccessAllowedForUrls
What we ended up doing was creating this registry path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\LocalNetworkAccessAllowedForUrls
And then adding a new string value, named 1 with a value of the test domain we worked with, e.g. [*.]our.test.domain.com
This then appeared to have applied the Local Access Network" exemption to all the web apps we test under that domain.