selenium webdriver - How to close firefox browser in selenim 3.0.1 -
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() browser not closed in driver.quite() browser closed , firefox crashed. getting error: "plugin container firefox has stopped working."
please let me know solution
steps can try:
- uninstall plugins in firefox browser.
- use 64-bit version of geckodriver 64-bit firefox, similarly, 32-bit geckodriver 32-bit firefox.
i have tried code in same environment, , driver.quit
worked me. driver.close
still not closing browser.
Comments
Post a Comment