Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox bug with Selenium - Can't access dead object

I've tried to run my tests with Selenium 2 and Firefox 19. One of this tests causes an error "ERROR: Command execution failure. The error message is: can't access dead object".

I'm reading about it, it seems like a bug in newest Firefox's versions. Lot of people have the same issue, but I've not found anything really clear.

Any heroe can help us? Maybe we just need to change something in "about:config"?

Regards

like image 784
discostu Avatar asked May 06 '13 10:05

discostu


1 Answers

This error generally comes when you do no switch back from frame and trying to access web elements directly. Use driver.switchTo().defaultContent(); and then try to access the elements

like image 98
Pravin Shinde Avatar answered Sep 18 '22 19:09

Pravin Shinde