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. 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 agree to our terms of service, privacy policy and cookie policy

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