In the application I’m testing, the developers have a way to access the debug page in the app. To do so, I need to long press the Android Back button. I see there is a mobile event called longPress in the documentation. Tried using this event with AndroidKeycode.BACK and this returned an error about this event not being implemented yet.
Is there any other way to long press the Android buttons.
I’m working with Java. Looks like this function doesn’t exist in the Java-Client. There’s long_press functions but the parameters are x,y coordinates/webelement.
Hi guys,
I’m trying to use Java long tap on appium server 1.4.13 and look like it’s work same as usual pressKeyCode method.
At AndroidDriver.class
public void pressKeyCode(int key) {
this.execute(“pressKeyCode”, getCommandImmutableMap(“keycode”, Integer.valueOf(key)));
}
public void longPressKeyCode(int key) {
this.execute(“pressKeyCode”, getCommandImmutableMap(“keycode”, Integer.valueOf(key)));
}
Will it fixed?
Really need this method to test launching activity after long tap on home button.