Tap
Tap
Description: This function is used to tap the element.
ObjectName | Action | Input | Condition | Reference |
---|---|---|---|---|
mobileObject | Tap |
TapIfExists
Description: This function will tap the element if it exists.
ObjectName | Action | Input | Condition | Reference |
---|---|---|---|---|
mobileObject | TapIfExists |
TapIfVisible
Description: This function will tap the element if it is displayed.
ObjectName | Action | Input | Condition | Reference |
---|---|---|---|---|
mobileObject | TapIfVisible |
@Action(object = ObjectType.APP, desc = "Tap the [<Object>] if it is displayed")
public void TapIfVisible() {
if (Element != null) {
if (Element.isDisplayed()) {
Tap();
} else {
Report.updateTestLog(Action, "Element [" + ObjectName + "] not Visible", Status.DONE);
}
} else {
Report.updateTestLog(Action, "Element [" + ObjectName + "] not Exists", Status.DONE);
}
}
TapAndHoldElement
Description: This function is used to perform tap and hold operation on an element.
ObjectName | Action | Input | Condition | Reference |
---|---|---|---|---|
mobileObject | TapAndHoldElement |
@Action(object = ObjectType.APP, desc = "Tap and hold the [<Object>] element ")
public void TapAndHoldElement() {
if (elementEnabled()) {
new Actions(mDriver).clickAndHold(Element).build().perform();
Report.updateTestLog(Action, "Tap and hold done", Status.DONE);
} else {
throw new ElementException(ElementException.ExceptionType.Element_Not_Enabled, ObjectName);
}
}
TapInputByLabel
Description: This function will tap on an element whose label is provided in the element.
ObjectName | Action | Input | Condition | Reference |
---|---|---|---|---|
mobileObject | TapInputByLabel |
TapInputByText
Description: This function will tap on the element whose label is provided in the input.
Input Format : @Expected Text
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Mobile | TapInputByText |
@value | |||
Mobile | TapInputByText |
Sheet:Column | |||
Mobile | TapInputByText |
%dynamicVar% |
Tap_Relative
Description: This function will tap on element based on parent object
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
mobileObject | Tap_Relative |
PageName |