无法使用Chrome浏览器打开安全页面。 包含所有名称空间,除https流量外,一切正常。 这是启动浏览器的代码:
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability("profile.default_content_settings.cookies", 1);
$capabilities->setCapability("disable-save-password-bubble", true);
$capabilities->setCapability("--ignore-certificate-errors", true);
$capabilities->setCapability("chrome.switches", array("--ignore-certificate-errors", "--user-data-dir=/home/dev/.config/chromium/Default", "--no-sandbox"));
$capabilities->setCapability(WebDriverCapabilityType::ACCEPT_SSL_CERTS, true);
$capabilities->setCapability(WebDriverCapabilityType::WEB_STORAGE_ENABLED, true);
$web_driver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);
有人知道如何使用chrome for https流量自动化selemnium测试吗?