-
Notifications
You must be signed in to change notification settings - Fork 394
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
pointerUp doesn't work in iOS devices #924
Comments
The main purpose of this is to do faster scrolls, and after further investigations I have found a quick fix/hack for // [self fb_waitUntilStableWithTimeout:FBConfiguration.animationCoolOffTimeout]; This will at least make the next perform() not wait for the scroll down to finish the animation, and will perform the next action right away, improving the speed for scrolling/swiping consecutively. Not sure if this is desirable, but it would be nice to have it as a property that can be changed from Appium side, something like This modification DOESNT fix the main issue described above, but it at least solves the problem that lead me to create the ticket in the first place. This is my first time looking deep into the code, so there might be other options that are more reasonable. So Im open to suggestions. Thanks! |
The animation timeout could be set to zero via setitngs. Regarding the actions above - make sure there are appropriate pauses between actions. No real gesture happens instantly, there will be always some pauses between actions. You may also want to check https://github.com/appium/appium-xcuitest-driver/blob/master/docs/guides/gestures.md |
Thanks! yes that worked too, but Im still concern about not being able to liftUp the pointer, do you have any idea about that? |
I'm afraid the XCTest API does not support such scenario. |
It looks like it, but it is pretty strange that they have this pointer event in their API:
but if it doesnt work, or at least it doesnt work on the implementation of WebDriverAgent, I feel like a |
Unfortunately the API itself is a private one, it contains zero official documentation. Maybe there is still something that we don't know about... Nevertheless, feel free to improve existing documents and/or add important details you may find out while experimenting with it. |
Yeah, I have also tried to navigate it and it's very bad... really appreaciate your efforts and answers. I will keep looking into it and if I can help I will keep this updated |
I've been trying to create a test that has multiple swipes (to scroll down) within the same BuiltAction, but it seems that pointerUp doesnt do anything at all:
This action slides up and down without the releasing the pointer as started in the pointerUp. Also here the logs from appium:
The text was updated successfully, but these errors were encountered: