Php 嵌入式chromedriver
他们是否有可能使用嵌入式凭证运行PHPUnit Selenium测试?由于chromedriver 59无法使用url中的嵌入凭据启动测试,如下所示: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开始就阻止了这一功能,但这不只是子资源吗?这意味
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']);