Open alvarolaserna opened 3 months ago
The main purpose of this is to do faster scrolls, and after further investigations I have found a quick fix/hack
for /WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.m
comment line 66:
// [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 waitUntilStableAnimation: False/True
.
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
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?
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.
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:
- (void)liftUpAtOffset:(double)arg1;
but if it doesnt work, or at least it doesnt work on the implementation of WebDriverAgent, I feel like a warn
event, or some documentation within driver in regards to this would be helpful.
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.
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: