How to press hardware key press in appium studio?

How to press Lock | Unlock | Back | App Switcher | Home keys using Appium studio?

Hi Ashraf,

For Android, you can use pressKeyCode - for a complete list https://stackoverflow.com/questions/11768356/need-table-of-key-codes-for-android-and-presenter

for iOS - you can use our executeScript(“experitest:deviceAction(”<ACTION") method

https://docs.experitest.com/display/AS/Additional+Commands
https://docs.experitest.com/display/public/SA/DeviceAction

1 Like