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

MobileOptions.TapOptions Class

Use this class to further configure the Tap API.

Definition

Namespace: UiPath.MobileAutomation.API.Models

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

Syntax

public class TapOptions : TargetOptionspublic class TapOptions : TargetOptions
The MobileOptions.TapOptions type exposes the following members.

Constructors

public TapOptions()public TapOptions()
MobileOptions.TapOptions
Initializes a new instance of the MobileOptions.TapOptions class.

Properties

ContinueOnError
Specifies if the automation should continue even when the method throws an error. This parameter only supports Boolean values (true, false). The default value is alse. As a result, if the parameter is blank and an error is thrown, the execution of the project stops. If the value is set to true, the execution of the project continues regardless of any error.
DelayAfter
Delay time (in seconds) after executing the method. The default value is 0.3 seconds.
DelayBefore
Delay time (in seconds) before the method begins performing any operations. The default value is 0.2 seconds.
tapOffset tapOffset
Set the parameters of your target element.
  • Position - Choose the default positioning of the anchor point.
  • Type - Choose how to set the target coordinates. You can choose the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • OffsetX - Horizontal displacement of the targeted area chosen for Type.
  • OffsetY - Vertical displacement of the targeted area chosen for Type.
Timeout
Specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.

tapOffset

Syntax

PropertyValue: TapOffsetModel
Use this property to set the parameters of your target element.
  • Position - Choose the default positioning of the anchor point.
  • Type - Choose how to set the target coordinates. You can choose the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • OffsetX - Horizontal displacement of the targeted area chosen for Type.
  • OffsetY - Vertical displacement of the targeted area chosen for Type.
public TapOffsetModel tapOffset { get; }public TapOffsetModel tapOffset { get; }
  • Definition
  • Syntax
  • Constructors
  • Properties
  • tapOffset
  • Syntax

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.