Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium unknown error: unhandled inspector error

I am receiving following error while executing the line(selenium chrome driver):

driver.findElements(By.className("myClass"));

unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find execution context with given id"}

What is the reason for this error? How can i solve it?

like image 508
Sarunya Durai Avatar asked Feb 04 '16 11:02

Sarunya Durai


1 Answers

I had this issue today exclusively with ChromeDriver on a project that has been working fine. I found that upgrading to the following version of ChromeDriver fixed the issue for me:

ChromeDriver v2.21 Download Page

like image 79
Ben C Avatar answered Sep 19 '22 13:09

Ben C