Package co.verisoft.fw.utils.locators
Class InputBy
- java.lang.Object
-
- co.verisoft.fw.utils.locators.InputBy
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.openqa.selenium.Bylabel(String labelText)Will return a list ofByobjects, which are a. Of type input b. Contains the label sent as parameter c. Has a general structure of<label><input /> </label>For example:
The following html code:
-
-
-
Method Detail
-
label
public static org.openqa.selenium.By label(String labelText)
Will return a list of
Byobjects, which are- a. Of type input
- b. Contains the label sent as parameter
- c. Has a general structure of
<label><input /> </label>
The following html code:
can be located using any of the words 'This is a label':<html> <body> <label>This is a label <input id="text"> </label> </body> </html>
driver.findElements(InputBy.label("label"));
If the structure of the form does not comply with<label> <input /> </label>then the search will not find the input- Parameters:
labelText- the name of the label to look for- Returns:
- By object to be searched for in findElements
-
-