Activities
latest
false
Banner background image
UI Automation Activities
Last updated Apr 26, 2024

Tap

Returns a boolean variable that states whether a specified UI element exists. The API doesn't have a return value, but if the specified UI element exists (boolean value), then it performs tap operations on it.

Definition

Namespace: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

Overloads

OverloadDescription
Tap(IElementDescriptor, TapTypeEnum, MobileOptions.TapOptions)Returns a boolean variable whether an IElementDescriptor UI element exists.
Tap(ObjectRepositoryTarget, TapTypeEnum, MobileOptions.TapOptions)Returns a boolean variable whether an ObjectRepositoryTarget UI element exists.
Tap(SelectorTarget, TapTypeEnum, MobileOptions.TapOptions)Returns a boolean variable whether an SelectorTarget UI element exists.

Tap(IElementDescriptor, TapTypeEnum, MobileOptions.TapOptions)

Returns a boolean variable whether an IElementDescriptor UI element exists.
Tap(
	    IElementDescriptor element,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)Tap(
	    IElementDescriptor element,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)
element
A UI element from the Object Repository that you access using the ObjectRepository.Descriptors class.

Visit Using objects in coded automations with Mobile Automation to learn how to use Object Repository elements with mobile automation.

tapType TapTypeEnum (Opitional)
Specifies the tap type. Default value TapTypeEnum.Single. You can choose from the following values:
  • Single
  • Double
  • LongPress
options MobileOptions.TapOptions (Optional)
Specifies the MobileOptions.TapOptions for the tap action. Default value is null.

Tap(ObjectRepositoryTarget, TapTypeEnum, MobileOptions.TapOptions)

Returns a boolean variable whether an ObjectRepositoryTarget UI element exists.
Tap(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)Tap(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
An object of type ObjectRepositoryTarget.
tapType TapTypeEnum (Opitional)
Specifies the tap type. Default value TapTypeEnum.Single. You can choose from the following values:
  • Single
  • Double
  • LongPress
options MobileOptions.TapOptions (Optional)
Specifies the MobileOptions.TapOptions for the tap action. Default value is null.

Tap(SelectorTarget, TapTypeEnum, MobileOptions.TapOptions)

Returns a boolean variable whether an SelectorTarget UI element exists.
Tap(
	    SelectorTarget targetSelector,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)Tap(
	    SelectorTarget targetSelector,
	    TapTypeEnum tapType = TapTypeEnum.Single,
	    MobileOptions. TapOptions options = null
)
targetSelector SelectorTarget
An object of SelectorTarget type. Can be constructed using FromSelector(String) method.
tapType TapTypeEnum (Opitional)
Specifies the tap type. Default value TapTypeEnum.Single. You can choose from the following values:
  • Single
  • Double
  • LongPress
options MobileOptions.TapOptions (Optional)
Specifies the MobileOptions.TapOptions for the tap action. Default value is null.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.