appium / appium-windows-driver

Appium's interface to WindowsAppDriver provided by Microsoft
Apache License 2.0
133 stars 35 forks source link

[Help] Long press element is not working #184

Open ashalyn opened 1 year ago

ashalyn commented 1 year ago

Environment

Appium-Python-Client 2.11.1 Windows desktop app

Details

  1. When I tried to long press an element,
    TouchAction(self.driver).long_press(ele, duration).perform(), it couldn't work

  2. 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?

KazuCocoa commented 1 year ago

May https://github.com/appium/appium-windows-driver#windows-click help? I wondered if durationMs helps