selenium下打开Chrome报错解决
selenium下打开Chrome报错解决
错误如下:
[22516:20196:0704/024642.979:ERROR:install_util.cc(597)] Unable to read registry value HKLM\SOFTWARE\Policies\Google\Chrome\MachineLevelUserCloudPolicyEnrollmentToken for writing result=2
解决方案如下:
在注册表里加一个值名称为MachineLevelUserCloudPolicyEnrollmenToken(数据为空)就可以了。
HKLM_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\MachineLevelUserCloudPolicyEnrollmenToken
转自:https://blog.csdn.net/hoddy355/article/details/80906596
也可通过管理员命令方式运行如下命令即可解决:
命令行提权运行「reg add HKLM\SOFTWARE\Policies\Google\Chrome /v MachineLevelUserCloudPolicyEnrollmentToken /t REG_SZ」,添加报错信息中提示的注册表值 - 已确认,有效