Has any one tried Clicking below On-Screen buttons through Appium? I need to do a long press on overview button to lauch App settings.
You can use Android keycodes
Use AndroidDriver method ‘pressKeyCode’
AndroidDriver androidDriver = (AndroidDriver) appiumDriver;
androidDriver.pressKeyCode(AndroidKeyCode.HOME);
I wanted to do a long press on
AndroidDriver androidDriver = (AndroidDriver) appiumDriver;
androidDriver.pressKeyCode(AndroidKeyCode.FLAG_LONG_PRESS);
androidDriver.pressKeyCode(AndroidKeyCode.KEYCODE_APP_SWITCH);
Will this work?
Really I don’t know, but you can try and share with us.