Closed
Bug 1429949
Opened 8 years ago
Closed 8 years ago
Find element by link text and partial link text should look at rendered text.
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1381519
People
(Reporter: fisherii, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Steps to reproduce:
With a doc with the following:
<a href="" style="text-transform: uppercase;">Account Info</a>
Perform the following webdriver command (Java):
driver.findElement(By.linkText("ACCOUNT INFO"));
Actual results:
A NoSuchElementException is thrown.
Expected results:
The anchor defined above should be returned
per https://w3c.github.io/webdriver/webdriver-spec.html#link-text it is supposed to compare against the rendered text, not the text in the HTML.
See also: https://github.com/SeleniumHQ/selenium/blob/e09e28f016c9f53196cf68d6f71991c5af4a35d4/javascript/atoms/dom.js#L1151 where you can see that Get Element Text applies text-transform styles.
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Component: geckodriver → Marionette
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•