MicrosoftWebDriver has trouble with XPath and closing single quote

Fixed Issue #11440920


Daniel W.
Mar 29, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
XML Path Language (XPath)

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

I provide an example both attached and at
I have tested the following XPath queries with ChromeDriver, FirefoxDriver, InternetExplorerDriver, and EdgeDriver.

//span[.="Owner’s Birthday"]

Works in Chrome, InternetExplorer, and Firefox, but does NOT work in EdgeDriver:

I suspect there is a problem specifically with the starts-with function in EdgeDriver.


Comments and activity

  • Changed Steps to Reproduce

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Also note:

    by string arithmetic is the same as
    //span[substring(., 1, string-length(“Owner’s”)) = “Owner’s”]

    which does work.

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Title from “MicrosoftWebDriver has trouble with XPath and closing single quote” to “MicrosoftWebDriver has trouble with XPath and closing single quote”

  • Hello.
    I just wanted to update that I have tested the starts-with function on other unicode characters, not just closing single quote. Simply put, the starts-with function cannot handle "non-standard characters". Try it with other unicode characters, such as ” or †

  • Hi Daniel,

    Was able to repro your findings in 14393.1066.  Sure enough most of the UTF-8 Unicode characters were not working.

    I also wanted to let you know the good news and that is that this bug has been fixed in our current developer’s builds.  I do not know when this build version will be released on the insider fast track but it will get there.

    I appreciate the follow-up information and the continued testing as that was very useful.

    I will be closing this as fixed in a future release.

    Appreciate the support and keep these high quality bug reports coming.  :-)

    The MS Edge Team

  • I forgot to mention that I attached a screenshot of my testing in the development build showing this test passing:  Owner†s

    I think you will also see some of the trials I ran.  I bet you have a lot more.


  • Microsoft Edge Team

    Changed Status from “Confirmed” to “Fixed”

  • Hi Daniel,

    I wanted to let you know that I am closing this as ‘fixed’ as it is working in a current developer build.

    Appreciate this submission,

    The MS Edge Team

You need to sign in to your Microsoft account to add a comment.

Sign in