Giter Site home page Giter Site logo

Comments (7)

mykola-mokhnach avatar mykola-mokhnach commented on August 30, 2024 1

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

from webdriveragent.

mykola-mokhnach avatar mykola-mokhnach commented on August 30, 2024 1

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.

from webdriveragent.

alvarolaserna avatar alvarolaserna commented on August 30, 2024

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!

from webdriveragent.

alvarolaserna avatar alvarolaserna commented on August 30, 2024

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?

from webdriveragent.

mykola-mokhnach avatar mykola-mokhnach commented on August 30, 2024

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.

from webdriveragent.

alvarolaserna avatar alvarolaserna commented on August 30, 2024

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.

from webdriveragent.

alvarolaserna avatar alvarolaserna commented on August 30, 2024

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

from webdriveragent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.