-1

I have a problem with my Selenium tests when using IEDriverServer.exe (32-bit). The same tests work fine in Firefox and Chrome browsers, but fail in Internet Explorer 11 with diagnostics:

OpenQA.Selenium.InvalidSelectorException : The xpath expression '//input[@id='username']' cannot be evaluated or does notresult in a WebElement

It seems that IEDriver cannot find elements by XPath. IEDriver version: 2.48. Is there any workaround for this problem, except changing XPath with CSS locators?

Manos Nikolaidis
  • 21,608
  • 12
  • 74
  • 82

1 Answers1

0

I found a possible reason in comments for a similar problem: here Update for IE11 KB3025390 (and latest ones) breaks IEDriver. When uninstall updates IEDriver successfully interacts with WebElements through XPath.

Community
  • 1
  • 1