在Eclipse输入以下程序:

第三篇: Java-Selenium之FirstTestCase
运行程序,自动打开京东!

Error:Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information
Solution: Use GeckoDriver with Selenium
1.下载最新版GeckoDriver
https://github.com/mozilla/geckodriver/releases
2.设置geckodriver
System.setProperty(“webdriver.gecko.driver”, “F:\\workspace\ToolsQA\OnlineStore\geckodriver-v0.26.0-win64\geckodriver.exe”);

Error:Unable to find a matching set of capabilities
Solution: 需要更新火狐至最新

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2021-10-02
  • 2022-01-11
  • 2021-10-30
  • 2022-12-23
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2021-06-10
  • 2021-04-27
  • 2021-04-27
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案