UiPath Documentation
activities
latest
false
UI Automation activities

PressHardwareButton

PressHardwareButton in the Mobile Automation coded automation API: presses a hardware button on the connected device () `` PressHardwareButton( HardwareButton button, MobileOptions.

Presses a hardware button on the connected device

Definition​

Namespace: UiPath.MobileAutomation.API.Models

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

PressHardwareButton(HardwareButton, MobileOptions.HardwareButtonOptions)​

PressHardwareButton(
	HardwareButton button,
	MobileOptions. PressHardwareButtonOptions options = null
)
PressHardwareButton(
	HardwareButton button,
	MobileOptions. PressHardwareButtonOptions options = null
)

button HardwareButton: The button you wan to press. The following options are available:

* `HomeButton`
* `BackButton`
* `SwitchAppButton`
* `HomeButton`
* `BackButton`
* `SwitchAppButton`

options MobileOptions.PressHardwareButtonOptions (Optional): Specifies the MobileOptions.PressHardwareButtonOptions for the PressHardwareButton 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