System.setProperty("webdriver.gecko.driver", "C:\\Users\\vinil\\Downloads\\geckodriver-v0.11.1-win64\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("http://www.jobserve.com/in/en/Job-Search/");
driver.findElement(By.xpath("//*[@id='ddcl-selInd']/span/span")).click();
Thread.sleep(5000);
driver.quit();
[]
答案 0 :(得分:0)
当您关闭浏览器时,driver.quit()
会发生这种情况。
退出geckodriver firefox实例时遗憾的是已知问题,请参阅此链接了解详情。
https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/7506 https://bugzilla.mozilla.org/show_bug.cgi?id=1027222