appium / appium/python-client

driver.swipe() last argument not working on android chrome browser

Open
#1,091 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
570
Avg merge
1d 10h
Merged PRs (30d)
24

Description

appium version

Appium v2.15.0

chrome driver version

124.0.6367.207

when i test driver.swipe() on android chrome browser,as follows:

screen_size = driver.get_window_size()
width = screen_size['width']
height = screen_size['height']

print("screen size ",width, height)

fromX=width/2
fromY=height/2+100
endX=width/2+50
endY=100
driver.swipe(fromX,height,endX,0,5000)
endY-fromY=300

i set last argument duration to 5000ms (5 seconds),but the action finished quickly with no delay

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the driver.swipe() call shown in the issue and reproduce it using Appium v2.15.0 on Android Chrome with the listed ChromeDriver version. Trace how the final duration argument is handled; the work is done when a 5000ms swipe honors the requested duration or the limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.