Skip to main content

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);