use of com.axway.ats.uiengine.utilities.mobile.MobileElementState in project ats-framework by Axway.
the class MobileTextBox method pressEnterKey.
@PublicAtsApi
public void pressEnterKey() {
new MobileElementState(this).waitToBecomeExisting();
try {
WebElement textElement = MobileElementFinder.findElement(appiumDriver, this);
textElement.sendKeys("\n");
} catch (Exception se) {
throw new MobileOperationException(this, "pressEnterKey", se);
}
// think time
UiEngineUtilities.sleep();
}
use of com.axway.ats.uiengine.utilities.mobile.MobileElementState in project ats-framework by Axway.
the class MobileTextBox method setValue.
/**
* Set the Text Box value
*
* @param value
*/
@PublicAtsApi
public MobileTextBox setValue(String value) {
new MobileElementState(this).waitToBecomeExisting();
try {
WebElement textElement = MobileElementFinder.findElement(appiumDriver, this);
textElement.clear();
textElement.sendKeys(value);
} catch (Exception se) {
throw new MobileOperationException(this, "setValue", se);
}
// think time
UiEngineUtilities.sleep();
return this;
}
Aggregations