@Target(value=FIELD) @Retention(value=RUNTIME) public @interface SeleniumElement
@Page
class MyPage {
@SeleniumElement(id="TestText")
TextField testText
}
Leads to:
@Page
public class MyPage {
@SeleniumElement(id="TestText")
private TextField testText;
public TextField getTestText() {
return testText;
}
}
Modifier and Type | Optional Element and Description |
---|---|
String |
className
Find elements based on the value of the "class" attribute.
|
String |
css
Find elements via the driver's underlying W3 Selector engine.
|
String |
id
Locate elements by the value of the "id" attribute.
|
String |
linkText
Locate elements by the exact text they display.
|
String |
name
Locate elements by the value of the "name" attribute.
|
String |
partialLinkText
Locate elements that contain the given link text.
|
String |
tagName
Locate elements by their tag name.
|
String |
xpath
Locate elements via XPath.
|
public abstract String id
public abstract String name
public abstract String className
public abstract String css
public abstract String tagName
public abstract String linkText
public abstract String partialLinkText
public abstract String xpath
Copyright © 2018–2021 b+m Informatik AG. All rights reserved.