Firefox error with Selenium - Unable to access dead object

I tried to run the tests with Selenium 2 and Firefox 19. One of these tests causes the error "ERROR: command execution failed. Error message: Unable to access dead object".

I read about it, it seems like a bug in the latest versions of Firefox. Many people have the same problem, but I did not find anything really clear.

Can any hero help us? Maybe we just need to change something in "about: config"?

Hi

+7
source share
4 answers

I was desperate for the same problem and did not find any solution, although many people had the same problem.

I solved it by calling

webDriver.switchTo().defaultContent(); 

before calling any findElement method (using Java)

+12
source

This error usually occurs when you do not switch from a frame and do not try to access web elements directly. Use driver.switchTo().defaultContent(); and then try to access the elements

+3
source

Finally I did a cheat in the browser.

I got a crash when Selenium clicked on a link and tried to open a new page. What I did is simply simulate a click, making selenium.open ("URL"), which replace selenium.click ("link = ButtonWhichOpenTheURL").

It seems to work for a moment

0
source

I am facing the same error in Firefox 23, opening a browser popup. The only workaround I made was to close the current selenium session and restart it again. It worked for me.

0
source

All Articles