Selenium WebDriver
Pages
Home
Friday, July 3, 2015
How to locate object through link text
Example
: If an element is given like this:
1
WebElement
element
=
driver
.
findElement
(
By
.
linkText
(
"Name of the Link"
)
)
;
XHTML
1
<a
href
=
"link.html"
>
Name of the Link
</a>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment