Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox windows don't close after Selenium test has run

I've been running my selenium tests using selenium rc for about 6 months and suddenly the firefox windows selenium opens do not close when the test is finished.

I am using a specific firefox profile and had not updated my selenium rc jar. I thought that perhaps the latest build of firefox may have been the problem but I reverted back to firefox 2 and the windows still stay open.

I'm running the test on a Windows box.

I've noticed other people seem to be having this problem - just wondering if anyone has a solution?

Thanks, Gearoid.

like image 737
Gerard Avatar asked Aug 12 '10 09:08

Gerard


1 Answers

My solution was to use driver.quit() (this will auto close the Firefox browser) instead of driver.close() - even though there was only one Firefox window open, AFAIK.

like image 174
jsalvata Avatar answered Oct 11 '22 13:10

jsalvata