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
Partial swipe left is not working #580
Comments
@vikramvi Why is |
@vikramvi How do you got the values as 250 etc etc hotcoded there? |
@SrinivasanTarget I tried by giving positive value, removing it altogether and later negative. This was one of the options suggested on appium forum. But none of them working in this case |
AFIK @vikramvi waitAction should be always positive. |
First I calculated size of the row which is {0,120} {0,174} { 320,120} {320,174}. To get it work at least, I tried hard coding the values. |
I tried but didn't work in that case as well |
One more solution mentioned https://discuss.appium.io/t/partial-swipe-left-on-ios-simulator-10-x-not-working/14948/2 , didn't work as well |
I believe it should be the issue with the co.ord's given. |
@SrinivasanTarget can you please suggest what co-ordinates should I try, I spent 2 days and come to conclusion that this could be a bug. Please refer to attached 2 screen shots for confirmation about correct co-ordinates. |
@vikramvi I don't suggest getting Co.ords using Appium/any Inspector. Something that we need to calculate through the dimensions of element. Should be something like this, https://github.com/saikrishna321/VodQaAdvancedAppium/blob/master/src/test/java/com/appium/gesture/GestureTest.java#L25. |
yes I tried it already, just used appium client to cross check co-ordinates. Earlier posted co-ordinates have got from code and not appium client. @SrinivasanTarget |
@saikrishna321 @SrinivasanTarget @TikhomirovSergey I still feel this is a valid bug. I played with the app for 30 mins. The behaviour is similar to Mail app in iOS. I think chaining of events are not happening properly in this case. Let me search for some open source project with similar behaviour to reproduce issue |
@vikramvi Are you sure that you need to swipe? I mean what is the purpose for swipe? |
@vikramvi It is not the client bug. |
@RockChild yes, I need to do swipe to get button enabled on right side of row; similar to Mail app email row. @TikhomirovSergey shall I close this and open new issue in appium repo ? |
Please open a new issue here The new one issue please link to this one. User should know where is the problem :) |
@TikhomirovSergey thanks for confirming it's bug on server side. I've opened new issue appium/appium#7914 |
@TikhomirovSergey I think this one can be closed as java-driver unrelated issue |
@triager please close |
Description
Environment
Details
have provided in description
Code To Reproduce Issue [ Good To Have ]
I tried below ways to achieve swipe left in partially
`TouchAction action1 = new TouchAction(driver).press(250 , 147).waitAction(-200).moveTo(147, 200).release();
action1.perform();
*/
// Point location = rowToSlide.getLocation();
//Point center = ((MobileElement) rowToSlide).getCenter();
https://gist.github.com/vikramvi/220ba19708a8f1ec0bbc8d906072f209
Ecxeption stacktraces
Please create a gist with pasted stacktrace of exception thrown by java.
Link to Appium logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.
The text was updated successfully, but these errors were encountered: