public enum By extends Enum<By>
About ibello search engine see hu.ibello.search.
| Enum Constant and Description |
|---|
BUTTON_CLASS
Search by the CSS class of a button.
|
BUTTON_TEXT
Search by text of a button.
|
CLASS_NAME
Search by CSS class name.
|
CSS_SELECTOR
Search by CSS selector.
|
ID
Search by ID.
|
LABEL
Search by label.
|
NAME
Search by name.
|
PARTIAL_BUTTON_TEXT
Search by partial text of a button.
|
PARTIAL_LABEL
Search by partial label.
|
PARTIAL_TEXT
Search by the partial text of an element.
|
TAG_NAME
Search by tag name.
|
TEXT
Search by the text of an element.
|
| Modifier and Type | Method and Description |
|---|---|
static By |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static By[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final By CSS_SELECTOR
public static final By ID
public static final By NAME
name attribute
of the desired element(s).public static final By TAG_NAME
public static final By CLASS_NAME
public static final By BUTTON_TEXT
button with the given text,input field for which the value attribute is the given text,
and the type attribute is button, submit or reset,input field for which the alt attribute is the given text,
and the type attribute is imagea (link) element with the given text,role=button attribute.public static final By TEXT
public static final By LABEL
label element.
The label should belong to the desired element. It means that:
for attribute, and the value of this attribute matches the
id attribute of the desired element.
for attribute, but there is a single input,
textarea or select element inside of it's parent or it's grandparent -
that single element will be the desired one.
public static final By PARTIAL_BUTTON_TEXT
button with the given text,input field for which the value attribute is the given text,
and the type attribute is button, submit or reset,input field for which the alt attribute is the given text,
and the type attribute is imagea (link) element with the given text,role=button attribute.public static final By PARTIAL_TEXT
public static final By PARTIAL_LABEL
label element's content.
The label should belong to the desired element. It means that:
for attribute, and the value of this attribute matches the
id attribute of the desired element.
for attribute, but there is a single input,
textarea or select element inside of it's parent or it's grandparent -
that single element will be the desired one.
public static final By BUTTON_CLASS
button,input field for which the type attribute is button,
submit, reset or image,a (link) element,role=button attribute.public static By[] values()
for (By c : By.values()) System.out.println(c);
public static By valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCreated by Kornél Simon, 2022