Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Chrome浏览器未打开以运行测试用例_Php_Google Chrome - Fatal编程技术网

Php Chrome浏览器未打开以运行测试用例

Php Chrome浏览器未打开以运行测试用例,php,google-chrome,Php,Google Chrome,我已经安装了php zendframework selenium。运行selenium时,不会使用以下命令打开chrome浏览器: /usr/bin/google-chrome --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-promp

我已经安装了php zendframework selenium。运行selenium时,不会使用以下命令打开chrome浏览器:

/usr/bin/google-chrome --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-logging --ignore-certificate-errors --load-extension=/tmp/.com.google.Chrome.LVz3oS/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12953 --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.UenPqz
如果我删除这个
——load extension=/tmp/.com.google.Chrome.LVz3oS/internal
,那么只有它允许打开浏览器。它正在创建一个内部扩展,因此如何删除它。

试试这个

  • 打开设置并向下滚动至隐私
  • 在chrome浏览器设置中,取消选中下图中突出显示的这些设置

  • 我已经在使用最新的chrome浏览器和最新的web驱动器。您不能删除驱动浏览器的扩展名。您应该立即更改答案检查