Why do I get following errors to execute script in internet explorer :

1. org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {stacktrace=, error=invalid session id, message=session null does not exist}

2. Caused by: java.lang.ClassCastException: com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to org.openqa.selenium.WebElement 
  • 2
    Share your script as well, not just the error messages. – Bence Kaulics Dec 8 '18 at 11:17

This is probably a mismatch between the browser version and Selenium.


Also, IE requires additional configuration.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.