Comments (8)
Can you be more specific about "not working"? What happens? Output from the client? Output on the server?
from perl-client.
Will capture more logs tomorrow and provide,
But "mobile: tap" option to execute_script method is no more supported.
from perl-client.
Yes, mobile: tap
is not supported.
from perl-client.
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.
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:
- adding the appropriate endpoint in Commands.pm
- creating a subroutine in Appium.pm that accepts parameters and references the above endpoint
- in TouchActions, update the
handles
for thedriver
attr with the subroutine name from step 2 - 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.
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.
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.
Please review the pull request and let me know.
from perl-client.
Related Issues (11)
- Create setText method HOT 6
- Create isLocked method HOT 1
- archive has symplink to itself HOT 1
- cannot start new session: Can't use string ("GET") as a HASH ref HOT 1
- fix type coercion for `By` strategies HOT 1
- Mobile scroll HOT 3
- test fails HOT 2
- Implement `/wd/hub/session/:sessionId/appium/device/system_time` endpoint HOT 1
- missing git tags for v0.083 and v0.084 HOT 1
- Needs a cpan release for v0.0804 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl-client.