webdriver - Selenium, opening ff browser and automaticly close -
trying run testng suite compiled jar on remote linux machine.
problem have is, if run tests, ff open url have defined , after closing brower, , on.
org.openqa.selenium.nosuchelementexception: unable locate element: {"method":"name","selector":"username"}
selenium 2.53.0 ff 45.0
any idea why test open browser , close?
nosuchelementexception thrown when element not exist. may not reason fx crash. possibilities :
some in code closing driver.
i had faced same issue earlier.
try upgrade firefox latest version.
try set firefox driver using setproperties
system.setproperty("webdriver.firefox.bin","c:\\users\\appdata\\local\\mozilla firefox\\firefox.exe"); webdriver driver=new firefoxdriver();
follow link upgrade or downgrade fx: https://support.mozilla.org/t5/install-and-update/install-an-older-version-of-firefox/ta-p/1564
below of helpful links.
Comments
Post a Comment