TextBoxActions
Static methodsâ
onTextBox (locator)
â
This will return ITextBoxActions
which will expose different methods to handle all text box related actions.
ITextBoxActions textBoxActions = TextBoxActions.onTextBox (locator);
Instance methodsâ
enterText (text)
â
This method is used to enter the given text to the given element.
import static io.github.boykaframework.actions.elements.TextBoxActions.onTextBox;
. . .
onTextBox (locator).enterText (text);
focus
â
This method is used to focus the cursor on the input element.
import static io.github.boykaframework.actions.elements.TextBoxActions.onTextBox;
. . .
onTextBox (locator).focus ();
inputValue
â
This method is used to get the value from the Textbox element.
import static io.github.boykaframework.actions.elements.TextBoxActions.onTextBox;
. . .
String value = onTextBox (locator).inputValue ();
verifyInputValue
â
This method is used to verify the value from the Textbox element.
import static io.github.boykaframework.actions.elements.TextBoxActions.onTextBox;
. . .
onTextBox (locator).verifyInputValue ()
.isEqualTo (userName);