Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/226.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 嵌入式chromedriver_Php_Selenium_Testing_Phpunit_Selenium Chromedriver - Fatal编程技术网

Php 嵌入式chromedriver

Php 嵌入式chromedriver,php,selenium,testing,phpunit,selenium-chromedriver,Php,Selenium,Testing,Phpunit,Selenium Chromedriver,他们是否有可能使用嵌入式凭证运行PHPUnit Selenium测试?由于chromedriver 59无法使用url中的嵌入凭据启动测试,如下所示: https://user:password@test.testweb.de 我的解决方案: 1.将auth basic+链接包含到服务器上已存在的文件 2.不使用auth basic跳回URL 好问题,为什么不把userinfo也添加到基本URL中呢?因为Google从chromedriver 59开始就阻止了这一功能,但这不只是子资源吗?这意味

他们是否有可能使用嵌入式凭证运行PHPUnit Selenium测试?由于chromedriver 59无法使用url中的嵌入凭据启动测试,如下所示:
https://user:password@test.testweb.de

我的解决方案: 1.将auth basic+链接包含到服务器上已存在的文件 2.不使用auth basic跳回URL


好问题,为什么不把
userinfo
也添加到基本URL中呢?因为Google从chromedriver 59开始就阻止了这一功能,但这不只是子资源吗?这意味着实际页面仍应使用凭据,但不适用于图像等?但也许我只是误解了。不,你是对的。但我需要子资源,如图像、css等来运行测试。这是唯一的原因。问得好。为什么不把
userinfo
也添加到基本URL中呢?因为谷歌从chromedriver 59开始就阻止了这个功能,但这不是只针对子资源吗?这意味着实际页面仍应使用凭据,但不适用于图像等?但也许我只是误解了。不,你是对的。但我需要子资源,如图像、css等来运行测试。这是唯一的原因。
'init_url'=>'https://user:password@test.testweb.de/robots.txt'
'base_url'=>'https://test.testweb.de'

$this->webDriver->get($config['platform']['testweb']['init_url']);
$this->webDriver->get($config['platform']['testweb']['base_url']);