Chrome Is Being Controlled By Automated Test Software "not Secure" Data:, Python
I'm using the selenium library in python to open google chrome and visit google.com automatically, this is how my script looks like at the moment import os from selenium import w
Solution 1:
You are missing full path of chromedriver including .exe. Use something like this or fully qualified of chromedriver
webdriver.Chrome(executable_path='drivers\chromedriver.exe')
Solution 2:
I modified your script in this way and was able to execute it successfully
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_path = '/Users/zac/Desktop/chromedriver_mac64/chromedriver'#this would be the path to the chromedriver exe on your system
chrome_options = webdriver.ChromeOptions()
chrome_options.accept_untrusted_certs = True
chrome_options.assume_untrusted_cert_issuer = True
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--allow-http-screen-capture")
chrome_options.add_argument("--disable-impl-side-painting")
chrome_options.add_argument("--disable-setuid-sandbox")
chrome_options.add_argument("--disable-seccomp-filter-sandbox")
driver = webdriver.Chrome(chrome_path, chrome_options=chrome_options)
driver.get("http://google.com/")
Also, you need to use add-argument
and not add_options
for the --enable-automation
flag
Post a Comment for "Chrome Is Being Controlled By Automated Test Software "not Secure" Data:, Python"