To to turn off [Protect you and your device from dangerous sites] thru ChomeOptions?

88 views
Skip to first unread message

lich...@gmail.com

unread,
Oct 1, 2015, 10:19:44 PM10/1/15
to ChromeDriver Users
Not sure how Chrome comes to a decision on a website containing threats and /or malware, but I do have one that I am sure that won't do any harm and on which I am asked to do automated testing.

In manual way I would just simply tick off [Protect you and your device from dangerous sites] check box in Advanced settings->Privacy, but how do I do that using chromedriver? Is it available in the prefs dictionary?

Any pointers will be highly appreciated.

Cheers

Aaron

lich...@gmail.com

unread,
Oct 1, 2015, 11:55:20 PM10/1/15
to ChromeDriver Users, lich...@gmail.com
To answer myself, turning off safe browsing does the trick :P

chromeoptions.add_experimental_option( "prefs", {'safebrowsing.enabled': False})

Reply all
Reply to author
Forward
0 new messages