When I tried to long press an element,
TouchAction(self.driver).long_press(ele, duration).perform(), it couldn't work
When I tried below method, and change Appium-Python-Client to 1.0.2, long_press could work
actions = ActionChains(self.driver)
actions.click_and_hold(ele)
actions.pause(duration)
actions.release()
actions.perform()
But if change Appium-Python-Client to the latest version 2.11.1, it also couldn't work
Is there any other method to achieve it using Appium-Python-Client 2.11.1?
Environment
Appium-Python-Client 2.11.1 Windows desktop app
Details
When I tried to long press an element,
TouchAction(self.driver).long_press(ele, duration).perform(), it couldn't work
When I tried below method, and change Appium-Python-Client to 1.0.2, long_press could work actions = ActionChains(self.driver) actions.click_and_hold(ele) actions.pause(duration) actions.release() actions.perform() But if change Appium-Python-Client to the latest version 2.11.1, it also couldn't work
Is there any other method to achieve it using Appium-Python-Client 2.11.1?