Python selenium on windows

  1. Open Registry Editor
  2. Search for below keys HKEY_CURRENT_USER\Software\Policies\Google\Chrome\ExtensionInstallBlacklist HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallBlacklist
  3. If you find any keys set under above location, just delete it.

 

or

 

# from selenium import webdriver

# chromeOptions = webdriver.ChromeOptions()
# chromeOptions.add_experimental_option('useAutomationExtension', False)

# driver = webdriver.Chrome(chrome_options=chromeOptions, desired_capabilities=chromeOptions.to_capabilities())
# driver.get("http://www.python.org")
 
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallBlacklist
posted @ 2019-03-26 18:26  天藐水瓶  阅读(209)  评论(0编辑  收藏  举报