![]() ![]() ![]() Close Mozilla FireFox (if the classic way isn’t working, close the program through Task Manager).In case Mozilla FireFox hangs with the message Mozilla FireFox (Not Responding) effectively means that something stopped Mozilla FireFox processes.Īs per the article Firefox is not responding there are multiple approaches to solve this issue (Windows 10) as follows: You can find a detailed discussion in Selenium : How to stop geckodriver process impacting PC memory, without calling driver.quit()? In case you need to kill the Firefox processes forcefully you can also use the taskkill() (windows) command through getRuntime().exec() as follows: Runtime.getRuntime().exec("taskkill /F /IM firefox.exe /T") You can find a detailed discussion in PhantomJS web driver stays in memory You are on the right track but when certain conditions are met don't manually terminate the program instead use: driver.quit() What might cause Firefox to hang like this and not respond to quit() command? So it seems purely random when the command works and doesn't work. Also, no error/exception is thrown when I call driver.quit(). As far as I see, there's is no difference between the way any of the drivers operate. ![]() I've looked at several threads on SO regarding similar issues but I feel none of them address my problem because, as stated, the command I'm using works in general - it's just not working on all instances. I'm unable to determine the root cause of the issue as the command I'm using to kill WebDriver is generally working. However, there's usually a handful (1-3) that 'hang' with the message Mozilla FireFox (Not Responding). Most of the active drivers are destroyed with this call (when I exit program). If driver.quit() throws exception I kill WebDriver by PID via Runtime.getRuntime().exec() taskkill command. At any given time I might have 4 dozen active WebDriver instances and to kill unwanted instances I call: My program launches several dozen instances of WebDriver in parallel and kills them when certain conditions are met or when I manually terminate the program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |