Jump to content

Popup to choose search engine everytime when using Chromedriver


Recommended Posts

I have several webdriver "projects" using the Webdriver UDF. 
For these I specifically use Chromedriver.
Recently I noticed people getting an onetime popup when using GoogleChrome to choose their default serach engine.
 

Yesterdy, I just installed a new WIndows 11 machine and got the popup once when using Google Chrome for the first time,
however when using webdriver/chromedriver I get the popup everytime I start a script.

Older computers with Wndows 10 or WIndows 11 do not have the popup when running the same scripts!

Does any one know a way do disable this within my chromedriver Autoit scripts?

image.thumb.png.48363a415c2e652ca8c7153b30b1d4c2.png

Link to comment
Share on other sites

@Danp2Using your link I added  _WD_CapabilitiesAdd("args","disable-search-engine-choice-screen")  to my script and the search engine selection pop-up, does not pop-up anymore :)
Thanks!

WD_CapabilitiesStartup()
_WD_CapabilitiesAdd("alwaysMatch", "chrome")
_WD_CapabilitiesAdd("w3c", True)
_WD_CapabilitiesAdd("excludeSwitches", "enable-automation")
_WD_CapabilitiesAdd("useAutomationExtension", false)
_WD_CapabilitiesAdd("prefs","credentials_enable_service", False)
_WD_CapabilitiesAdd("args","disable-search-engine-choice-screen")
$sDesiredCapabilities = _WD_CapabilitiesGet()

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...