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
swipe not act as expected #350
Comments
@truebit |
After going through all these bug descriptions and related java-client source code. I think it's not server side bug. |
Ok. Now I've got it. I think that some refactoring is needed because the same method is used by Android and iOS now. Android still uses absolute coordinates. It seems that the swiping should be implemented differently. |
@TikhomirovSergey is there a workaround for swipe until 4.0.0 is released? |
@nuggit32 You can override new TouchAction(getDriver()).press(startx, starty).waitAction(duration).moveTo(endx - startx, endy - starty).release().perform(); |
@truebit
|
@truebit new TouchAction((IOSDriver) driver).press(0, scrollStart).waitAction(100) |
@truebit @nuggit32 |
@TikhomirovSergey Hello, thanks for all your work on Appium. I need to get around the swipe bug somehow so I cloned master and built a jar, but whenever I try to import I get the error: "Type parameter 'org.openga.selenium.WebElement' is not within its bound: should extend 'WebElement'." I compiled in Eclipse. Do you know what I'm doing wrong? |
@BrantK |
Also I can build the SNAPSHOT and attach it to this ticket. |
That'd be awesome if you could attach a snapshot! I tried to build with IntelliJ and I'm getting a bunch of these errors. Error:(224, 12) java: The return type is incompatible with org.openqa.selenium.internal.FindsByLinkText.findElementsByPartialLinkText(String) |
@BrantK @truebit @nuggit32 |
Works perfect! Thank you so much, I really appreciate it! Keep up all the good work 👍😄 |
The fix is published now |
@TikhomirovSergey this still doesnt work for me on android.
|
@rompic Can you please log this separately along with logs inform of gist |
Swipe up is not working |
@SrinivasanTarget |
@dinkar19121991 Log a new issue with all logs needed. |
Description
trying to use
element.swipe(UP, duration);
, but the undergoingswipe(int startx, int starty, int endx, int endy, int duration)
does not work as expectedEnvironment
Details
I was trying to do
element.swipe(UP, duration)
.According to the debug level logs, after some
getLocation
andgetSize
requests , appium calledswipe(int, int,int,int,int)
as below:it was a correct swipe up action. but following logs showed that it interpreted the actions wrong to following commands:
please notice these commands were not swipe UP, but DOWN. and for the
y:737
part, the screen size was only (414,736)Code To Reproduce Issue [ Good To Have ]
no need
Ecxeption stacktraces
Please create a gist with pasted stacktrace of exception thrown by java.
Link to Appium logs
The text was updated successfully, but these errors were encountered: