Appium 1.9.0 - How can I use: driver.longPressKey and set duration time



I am using: driver.longPressKey
Does anyone knows how to make duration time to long press for example 10 seconds ?

Full line: driver.longPressKey(new KeyEvent(AndroidKey.MEDIA_FAST_FORWARD));

Thanks .


try to do it via W3C actions


it won’t work,
The tests are on Android TV


Anyone can help ? I can’t find a solution