UiPath Documentation
activities
latest
false
UI Automation activities

Tap

Tap in the Mobile Automation coded automation API: returns a boolean variable that states whether a specified UI element exists.

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](https://docs.uipath.com/studio/standalone/2024.4/user-guide/creating-an-object-repository#using-objects-in-coded-automations-with-mobile-automation) to learn how to use Object Repository elements with mobile automation.
Visit [Using objects in coded automations with
Mobile Automation](https://docs.uipath.com/studio/standalone/2024.4/user-guide/creating-an-object-repository#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`
* `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`
* `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`
* `Single`
* `Double`
* `LongPress`

options MobileOptions.TapOptions (Optional): Specifies the MobileOptions.TapOptions for the tap action. Default value is null.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated