Package co.verisoft.fw.utils.locators
Class InputBy
java.lang.Object
co.verisoft.fw.utils.locators.InputBy
Find elements which are of type input.
This mechanism used to locate elements within a form.
-
Method Summary
-
Method Details
-
label
Will return a list of
By
objects, 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:<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
-