Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Long press element is not working #184

Open
ashalyn opened this issue Jul 13, 2023 · 1 comment
Open

[Help] Long press element is not working #184

ashalyn opened this issue Jul 13, 2023 · 1 comment

Comments

@ashalyn
Copy link

ashalyn commented Jul 13, 2023

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
Copy link
Member

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

@KazuCocoa KazuCocoa transferred this issue from appium/python-client Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants