driver.press_keycode(4, duration=3000) driver.execute('mobile: pressKey', {'key': 'KEYCODE_BACK', 'duration': 3000}) driver.long_press_keycode(4) time.sleep(3)
driver.press_keycode(4, duration=3000) driver.execute('mobile: pressKey', {'key': 'KEYCODE_BACK', 'duration': 3000}) driver.long_press_keycode(4) time.sleep(3)