Class MobileTextBox
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.mobile.MobileElement<MobileTextBox>
-
- com.axway.ats.uiengine.elements.mobile.MobileTextBox
-
public class MobileTextBox extends MobileElement<MobileTextBox>
A single line mobile Text Box element - native or HTML oneCan be identified by:
- id
- name
- text - the exact text that element displays
- partialText - some part of the text that element displays
- xpath
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description MobileTextBox(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Get the Text Box valuevoidpressEnterKey()MobileTextBoxsetValue(String value)Set the Text Box valuevoidverifyNotValue(String notExpectedValue)Verify the Text Box value is NOT as specifiedvoidverifyValue(String expectedValue)Verify the Text Box value is as specified-
Methods inherited from class com.axway.ats.uiengine.elements.mobile.MobileElement
click, clickIfExists, getAttributeValue, getTextContent, scrollTo
-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
MobileTextBox
public MobileTextBox(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getValue
public String getValue()
Get the Text Box value- Returns:
-
setValue
public MobileTextBox setValue(String value)
Set the Text Box value- Parameters:
value-
-
pressEnterKey
public void pressEnterKey()
-
verifyValue
public void verifyValue(String expectedValue)
Verify the Text Box value is as specified- Parameters:
expectedValue-
-
verifyNotValue
public void verifyNotValue(String notExpectedValue)
Verify the Text Box value is NOT as specified- Parameters:
notExpectedValue-
-
-