# Press Hardware Button

> `UiPath.MobileAutomation.Activities.PressHardwareButton`

`UiPath.MobileAutomation.Activities.PressHardwareButton`

## Description

Presses a hardware button on the connected device.

## Project compatibility

**Windows - Legacy** | **Windows**

## Configuration

### **Common**

* **ContinueOnError** - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values
  (True, False). The default value is False. As a result, if the field 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.
  
  :::note
  If this activity is included in **Try Catch** and the value of the **ContinueOnError** property is True, no error is caught when the project is executed.
  :::
* **DisplayName** - The display name of the activity.

### **Input**

* **HardwareButton** - The button you wan to press. The following options are available:
  + HomeButton
  + BackButton
  + SwitchAppButton

### **Misc**

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
