-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Android: Tap does not work #33
Comments
Looks like a bug. But can you file this issue and the logs on the appium project, rather than java-client? |
according to @bootstraponline this was fixed by @imurchie. appium/appium#2575 We will be doing a release of appium soon, which will include this. |
Nope. This is because the multi-finger |
O.o it doesn't work with one finger? |
Yeah, the underlying multi pointer gesture library fails with a single gesture:
|
That is rather an informative error message. I'll also change java-client to throw an exception if one tries a multi-gesture with a single action. |
@Jonahss Hi, I'm getting the same error when using 1 finger tap, while 2 finger tap works. |
@MariaSoluto are you positive you are using java-client v1.4.0? |
@Jonahss guilty of using 1.1.0, but I upgraded now to 1.4.0 and I get this error if I try 1 finger tap (2 finger tap works): Session ID: c627c3c8-f0a5-45d2-bcfb-f46473c307aa |
You should be using selenium client version 2.24.2 I see 2.42.0 in the log On Thu, Jul 3, 2014 at 6:12 AM, MariaSoluto notifications@github.com
|
Android 4.4.2
Code:
((AppiumDriver) driver).tap(1,539,893,1000); (where 539, 893 is valid point on screen)
Log:
2014-05-21T09:21:54.373Z - debug: Request received with params: {"actions":[[{"action":"press","options":{"y":893,"x":539}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]]}
2014-05-21T09:21:54.379Z - info: [BOOTSTRAP] [info] Got command of type ACTION
2014-05-21T09:21:54.379Z - info: [BOOTSTRAP] [debug] Got command action: performMultiPointerGesture
2014-05-21T09:21:54.387Z - info: [BOOTSTRAP] [debug] Updating class "class com.android.uiautomator.core.UiDevice" to enable field "mUiAutomationBridge"
2014-05-21T09:21:54.388Z - info: [BOOTSTRAP] [debug] Updating class "class com.android.uiautomator.core.UiAutomatorBridge" to enable field "mInteractionController"
2014-05-21T09:21:54.388Z - info: [BOOTSTRAP] [debug] Finding methods on class: class com.android.uiautomator.core.InteractionController
2014-05-21T09:21:54.389Z - info: [BOOTSTRAP] [debug] Exception: java.lang.reflect.InvocationTargetException
2014-05-21T09:21:54.390Z - info: [UIAUTOMATOR STDOUT] java.lang.reflect.InvocationTargetException
2014-05-21T09:21:54.391Z - info: [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invokeNative(Native Method)
2014-05-21T09:21:54.391Z - info: [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invoke(Method.java:515)
2014-05-21T09:21:54.392Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.392Z - info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.handler.MultiPointerGesture.execute(MultiPointerGesture.java:43)
2014-05-21T09:21:54.393Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.393Z - info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.AndroidCommandExecutor.execute(AndroidCommandExecutor.java:97)
2014-05-21T09:21:54.393Z - info: [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.runCommand(SocketServer.java:195)
2014-05-21T09:21:54.394Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.394Z - info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.SocketServer.handleClientData(SocketServer.java:93)
2014-05-21T09:21:54.395Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.395Z - info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.SocketServer.listenForever(SocketServer.java:137)
2014-05-21T09:21:54.396Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.396Z - info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap.testRunServer(Bootstrap.java:17)
2014-05-21T09:21:54.397Z - info: [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invokeNative(Native Method)
2014-05-21T09:21:54.398Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.398Z - info: [UIAUTOMATOR STDOUT] java.lang.reflect.Method.invoke(Method.java:515)
2014-05-21T09:21:54.399Z - info: [UIAUTOMATOR STDOUT] at junit.framework.TestCase.runTest(TestCase.java:168)
2014-05-21T09:21:54.400Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.400Z - info: [UIAUTOMATOR STDOUT] junit.framework.TestCase.runBare(TestCase.java:134)
2014-05-21T09:21:54.407Z - info: [UIAUTOMATOR STDOUT] at junit.framework.TestResult$1.protect(TestResult.java:115)
2014-05-21T09:21:54.408Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.408Z - info: [UIAUTOMATOR STDOUT] junit.framework.TestResult.runProtected(TestResult.java:133)
2014-05-21T09:21:54.409Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.409Z - info: [UIAUTOMATOR STDOUT] junit.framework.TestResult.run(TestResult.java:118)
2014-05-21T09:21:54.409Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.410Z - info: [UIAUTOMATOR STDOUT] junit.framework.TestCase.run(TestCase.java:124)
2014-05-21T09:21:54.412Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.412Z - info: [UIAUTOMATOR STDOUT] com.android.uiautomator.testrunner.UiAutomatorTestRunner.start(UiAutomatorTestRunner.java:160)
2014-05-21T09:21:54.413Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.414Z - info: [UIAUTOMATOR STDOUT] com.android.uiautomator.testrunner.UiAutomatorTestRunner.run(UiAutomatorTestRunner.java:96)
2014-05-21T09:21:54.415Z - info: [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.RunTestCommand.run(RunTestCommand.java:91)
2014-05-21T09:21:54.417Z - info: [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.Launcher.main(Launcher.java:83)
2014-05-21T09:21:54.418Z - info: [UIAUTOMATOR STDOUT] at
2014-05-21T09:21:54.419Z - info: [UIAUTOMATOR STDOUT] com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
2014-05-21T09:21:54.419Z - info: [UIAUTOMATOR STDOUT] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
2014-05-21T09:21:54.420Z - info: [UIAUTOMATOR STDOUT] at dalvik.system.NativeStart.main(Native Method)
2014-05-21T09:21:54.420Z - info: [UIAUTOMATOR STDOUT] Caused by:
2014-05-21T09:21:54.420Z - info: [UIAUTOMATOR STDOUT] java.lang.IllegalArgumentException: Must provide coordinates for at least 2 pointers
2014-05-21T09:21:54.422Z - info: [UIAUTOMATOR STDOUT] at com.android.uiautomator.core.InteractionController.performMultiPointerGesture(InteractionController.java:689)
2014-05-21T09:21:54.422Z - info: [UIAUTOMATOR STDOUT] ...
2014-05-21T09:21:54.423Z - info: [UIAUTOMATOR STDOUT] 23 more
2014-05-21T09:21:54.423Z - info: [BOOTSTRAP] [info] Returning result: {"status":13}
2014-05-21T09:21:54.424Z - info: Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command."},"sessionId":"0e9637d1-49ce-43c8-a3de-d384f3afdd0c"}
POST /wd/hub/session/0e9637d1-49ce-43c8-a3de-d384f3afdd0c/touch/multi/perform 500 51ms - 176b
The text was updated successfully, but these errors were encountered: