Skip to content

[🐛 Bug]: linkText and partialLinkText in locators page #891

@alaahong

Description

@alaahong

What happened?

As the introduction of https://www.selenium.dev/documentation/test_practices/encouraged/locators/
“Selection strategies based on linkText and partialLinkText have drawbacks in that they only work on link elements. Additionally, they call down to XPath selectors internally in WebDriver.

Are they actually calling as XPath?

Just check the W3C spec, I'm not sure the XPath will work as given 4 steps.
And meanwhile, I can't find out further evidence on the XPath calling .
In Java, the LinkText and ParticalLinkText is same as tagName by BaseW3CLocator.

So is that correct as document mentioned?

Please correct me if this is not the right place to confirm.
Thanks.

What browsers and operating systems are you seeing the problem on?

win 10
edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions