Closed Bug 1735692 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 31224 - [wdspec] Add tests for xpaths containing unicode characters

Categories

(Testing :: geckodriver, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31224 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/31224
Details from upstream follow.

Andrew Nicols <andrew@nicols.co.uk> wrote:

[wdspec] Add tests for xpaths containing unicode characters

The wdspec does not limit the use of any valid xpath queries.

Use of unicode characters in both their text representation and their
unicode literal value are both supported by xpath, but the text
representations do not seem to be supported by mainstream browsers.

This patch adds two new xpath searches to find_element and find_elements
to search for the unicode character for ‎ (left-to-right marker):

  • a literal unicode character; and
  • the text representation of that character (\u200E).

These are both valid xpath queries which work in-browser, but not
through webdriver.

Component: web-platform-tests → geckodriver
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.