Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'

I'm using Cucumber with Watir Web-driver and Chrome browser. When I execute my tests, sometimes there is an error like this:

"Selenium::WebDriver::Error::InvalidSelectorError: invalid selector: Unable to locate an element with the xpath expression //a[contains(., 'Joao Moreira')] because of the following error: TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'. (Session info: chrome=43.0.2357.81) (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.3 x86_64)"

I tried to get an answer trough Google but with no success.

like image 338
Guilherme Pimentel Saraiva Avatar asked Jun 04 '15 10:06

Guilherme Pimentel Saraiva


1 Answers

Pretty sure this is this issue here: https://code.google.com/p/selenium/issues/detail?id=8600

And it is fixed as of Selenium 2.46.0. I haven't seen the error since moving.

like image 157
Nicholas DiPiazza Avatar answered Oct 24 '22 09:10

Nicholas DiPiazza