feifeidxl

由于Chrome Driver 只兼容Chrome  浏览器12.0.712.0 和之后的新版本,会因此如果要在老版本的Chrome  浏览器上使用Selenium, 则只能使用 SeleniumRC来完成任务,示例代码:

URL seleniumRC = new URL("http://localhost:4444");

URL testWebLink = new URL("http://www.google.com");

CommandExecutor executor = new SeleneseCommandExecutor(seleniumRC, testWebLink, DesiredCapabilities.chrome());

WebDriver driver = new RemoteWebDriver(executor);

分类:

技术点:

相关文章:

  • 2021-10-16
  • 2021-08-18
  • 2021-10-15
  • 2021-08-27
  • 2018-07-01
  • 2018-08-20
  • 2021-10-19
  • 2021-09-29
猜你喜欢
  • 2021-04-25
  • 2021-12-12
  • 2021-07-02
  • 2021-10-09
  • 2022-01-17
  • 2021-09-19
  • 2021-08-16
相关资源
相似解决方案