[5956:4996:0710/155156.898:ERROR:install_util.cc(589)] Unable to create registry key HKLM\SOFTWARE\Policies\Google\Chrome for reading result=2
找不到註冊信息。html
解決方法:python
1)打開註冊表編輯器web
a) 快捷鍵win+R b) 輸入:regedit c) 打開regedit.exe
2)找到並按順序展開如下項目:chrome
-HKEY_LOCAL_MACHINE -SOFTWARE -Policies
3)在Policies下建立Chrome項:編輯器
a) 選中Policies b) 點擊右鍵 c) 新建 - 項(k) d) 將該項命名爲:Google
4)在Google下建立Chrome項:ide
a) 選中Google b) 點擊右鍵 c) 新建 - 項(k) d) 將該項命名爲:Chrome
5)在Chrome下新建MachineLevelUserCloudPolicyEnrollmentToken字串:.net
a) 選中Chrome b) 點擊右鍵 c) 新建 - 字符串值(s) d) 將該字符串命名爲:MachineLevelUserCloudPolicyEnrollmentToken
6)若本來已有Google、Chrome項,則直接在下面添加第五步中的字符串值便可。code
WebDriverException: Message: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=67.0.3396.99) (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x8 _64)
webdriver與Chrome二者版本不匹配(通常來講,二者均保持最新便可)。orm
解決方法:htm
1)更新Chrome
2)更新webdriver
參考如下連接提供的下載地址:
http://www.testclass.net/selenium_python/selenium3-browser-driver/
3)必定要替換原來的webdriver,若忘記了原來的位置,能夠到環境變量配置中看一下