使用Java重用Selenium中的现有浏览器会话

时间:2018-12-27 13:22:47

标签: java selenium selenium-chromedriver webautomation

我们如何使用Java在Selenium中使用浏览器的现有会话?我已经运行了Tarun给出的代码

https://www.google.com/url?q=https://web.archive.org/web/20171214043703/http://tarunlalwani.com/post/reusing-existing-browser-session-selenium-java/&sa=D&source=hangouts&ust=1545991660349000&usg=AFQjCNFurLqPZAAIed0gVgXGlaQvAztPJw

使用上面的代码显示以下错误:

"Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property"

0 个答案:

没有答案