$driver->getKeyboard()->sendKeys(array(WebDriverKeys::CONTROL,"t"));
照着文档上的代码示范写的,没效果,浏览器没反应,测试选择全部内容:
$driver->getKeyboard()->sendKeys(array(WebDriverKeys::CONTROL,"a"));
生效,chrome版本84.0.4147.30
$driver->getKeyboard()->sendKeys(array(WebDriverKeys::CONTROL,"t"));
照着文档上的代码示范写的,没效果,浏览器没反应,测试选择全部内容:
$driver->getKeyboard()->sendKeys(array(WebDriverKeys::CONTROL,"a"));
生效,chrome版本84.0.4147.30