This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24847 - [WebDriver Spec]: Extend the find-by-link-text location strategy to apply to all elements
Summary: [WebDriver Spec]: Extend the find-by-link-text location strategy to apply to ...
Status: NEW
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 24121
  Show dependency treegraph
 
Reported: 2014-02-27 23:46 UTC by Wilhelm Joys Andersen
Modified: 2014-07-07 15:58 UTC (History)
2 users (show)

See Also:


Attachments

Description Wilhelm Joys Andersen 2014-02-27 23:46:43 UTC
Many of the interactive elements in web applications these days are not links, but arbitrary elements with event handlers. To test interaction with such elements, test authors often resort to using XPath.

XPath is an undesirable anti-pattern that should be killed with fire. To be able to fry it, we must first cater to its usecases and make it obsolete.

The first step can be to allow any element to be selected by its (visible) text:

https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#link-text