Giter Site home page Giter Site logo

Comments (8)

imurchie avatar imurchie commented on July 23, 2024

Can you be more specific about "not working"? What happens? Output from the client? Output on the server?

from perl-client.

npradeepkb avatar npradeepkb commented on July 23, 2024

Will capture more logs tomorrow and provide,
But "mobile: tap" option to execute_script method is no more supported.

from perl-client.

imurchie avatar imurchie commented on July 23, 2024

Yes, mobile: tap is not supported.

from perl-client.

npradeepkb avatar npradeepkb commented on July 23, 2024

Message should be send like this, how to do that.
{"sessionId":"719858c1-3cb6-49aa-a508-eb93229d570d","actions":[{"action":"tap","options":{"y":10,"x":100,"count":1,"element":"1"}}]}

can i replace execute_script with _execute_command with parameters

Please help me i will create a patch.

from perl-client.

gempesaw avatar gempesaw commented on July 23, 2024

can i replace execute_script with _execute_command with parameters

Hm, unfortunately, I think it's slightly more complicated than that, there's not an existing command for making the actions call like that yet. So, this would entail:

  1. adding the appropriate endpoint in Commands.pm
  2. creating a subroutine in Appium.pm that accepts parameters and references the above endpoint
  3. in TouchActions, update the handles for the driver attr with the subroutine name from step 2
  4. fix tap in TouchActions.pm to call the subroutine that you add from Appium.pm

Let me know if any of this is confusing or needs clarification. And, thanks for finding this bug!

from perl-client.

npradeepkb avatar npradeepkb commented on July 23, 2024

I have fixed for press, longPress, wait, swipe, relase, drag and drop,
Please let me know which branch i will checkin.

usage for swipe

$appium->swipe(600,200,100,200,1000)->perform();

in TouchActions.pm
return $self->press($coords[0], $coords[1])->wait($coords[4])->moveTo($coords[2], $coords[3])->release();

from perl-client.

gempesaw avatar gempesaw commented on July 23, 2024

Oh, great!

Please let me know which branch i will checkin.

You should fork the repository and open a PR and name the branch after the changes you're making. update-touch-actions would be fine, or whatever you'd like.

Did you/would you also add the relevant tests for the code you're adding? Thanks so much!

from perl-client.

npradeepkb avatar npradeepkb commented on July 23, 2024

Please review the pull request and let me know.

from perl-client.

Related Issues (11)

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.