I am using selendroid and python to do automation test on the app, the app is running on Android system and on the SAMSUNG S6, I want to write a script to simulate the long press gesture on an element in the app. i am using TouchAction-> long_press method to do it, but I do not know why the test always stop at this method. it is not crash, no error, it is just stuck at there forever, can somebody help me with that, thank you very much!
Here is the code:
touch_action = TouchActions(self.driver)
element = self.driver.find_element_by_xpath("(//LinearLayout)[1]")
touch_action.long_press(element).perform()