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:

  1. uninstall plugins in firefox browser.
  2. 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

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -