Can't find element by XPath with embedded single-quote

Confirmed Issue #11149851 • Assigned to Travis L.

Details

Author
Zach M.
Created
Mar 3, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

See bug report at: https://github.com/SeleniumHQ/selenium/issues/3589

Essence of bug: Edge webdriver is not able to find an element using an xpath with an embedded single-quote that is inside other single quotes (meaning, it is escaped using “’” since I am using the Java bindings.). There is a fiddle listed in that bug report as well for testing purposes. Chrome and IE 10+11 handle this case just fine.

NOTE: I checked the OS project (wicked-good-xpath) and did not find any open
issues on the improper escaping, but I also kind of remember that for MOST
cases of xpath we simply use querySelectorAll(), I think, so this might be a
bug in that part.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Mara P.”

      Changed Assigned To from “Mara P.” to “John J.”

    • I see that this bug has moved into the stage of "Reproduced but not assigned to be fixed yet". What is the status of this issue?

    • Microsoft Edge Team

      Changed Title from “Edge not able to find element by XPath with embedded single-quote” to “Edge not able to find element by XPath with embedded single-quote”

      Changed Assigned To from “John J.” to “Stanley H.”

      Changed Status to “Confirmed”

      Changed Title from “Edge not able to find element by XPath with embedded single-quote” to “Can't find element by XPath with embedded single-quote”

    • Has there been any movement on this issue? Is there a known release date for a fixed version of WebDriver?

    • Microsoft Edge Team

      Changed Steps to Reproduce

      Changed Status from “Confirmed”

      Changed Title from “Can't find element by XPath with embedded single-quote” to “Can't find element by XPath with embedded single-quote”

      Changed Assigned To to “Lee H.”

      Changed Steps to Reproduce

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

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

    Sign in