How to initiate Chrome Canary in headless mode through Selenium and Python
问题 from selenium import webdriver options = webdriver.ChromeOptions() options.binary_location = 'C:\Users\mpmccurdy\Desktop\Google Chrome Canary.lnk' options.add_argument('headless') options.add_argument('window-size=1200x600') driver = webdriver.Chrome(chrome_options=options) driver.get("https://www.python.org") 回答1: If you are using Chrome Canary as a basic Requirement the server still expects you to have Chrome installed in the default location as per the underlying OS architecture as follows