TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'.(Session info: chrome=44.0.2403.155) (Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961), platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 6.34 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
I observed that most of the people are facing this issue while executing their Selenium WebDriver script on chrome browser. So thought I should share my thought on it. Generally, this error comes when WebDriver is trying to find element using Xpath on chrome browser and if you execute the same script on Firefox browser, your script will work perfectly without any issues.
So basically, the version of selenium WebDriver and Chromedriver.exe file that you are using in your project is the main culprit. Just update your WebDriver Jar and chromeDriver.exe file to latest version and your issue will be resolved.
This is how I solved this problem on my project. I hope this information helps you in resolving this particular issue in your project. Good luck!! 🙂
If you really like the information provided above, please don’t forget to like us on Facebook, you can also leave the comment.