Firefox : 50.0.1, GeckoDriver :13, selenium 3.01, IDE: Eclipse, Programming language : Java
Using below code :
System.setProperty("webdriver.gecko.driver","C:\\geckodriver.exe);
WebDriver driver = new FirefoxDriver();
driver.get("https://www.youtube.com/");
driver.close(); Or driver.quit()
In driver.close() the browser is not closed In driver.quite() the browser is closed and Firefox crashed. Getting Error: "plugin container for FireFox has stopped working."
Please let me know any solution
Steps you can try:
I have tried the code in the same environment, and driver.quit
worked for me. driver.close
still not closing the browser.