title: Click is not working with appium test is passing but no action is performed
body: <p>I want to click on logout button. I have tried following things to perform a click action</p>
  
  <p>Using Tap</p>
  
  <pre><code>  WebElement logOut = driver.findElementByName("Log out");
              TouchAction act = new TouchAction(driver);
              act.tap(logOut, 1, 1);
  </code></pre>
  
  <p>Simple click</p>
  
  <pre><code>WebElement logOut = driver.findElementByName("Log out");
          logOut.click();
  </code></pre>
  
  <p>Press</p>
  
  <pre><code>TouchAction act = new TouchAction(driver);
          act.press(logOut).perform()
  </code></pre>
  
  <p>;</p>
  
  <p>For Press its giving </p>
  
  <pre><code>An unknown server-side error occurred while processing the command.
  </code></pre>
  
  <p>Also tried </p>
  
  <pre><code>MobileElement logout = (MobileElement) driver.findElementByName("Log out");
          logout.tap(1, 10);
  </code></pre>
  
  <p>Which gives same unknown server-side error</p>
  
  <p>Let me know if I am doing wrong anywhere.</p>
  
  <p><a href="https://i.stack.imgur.com/cGmAt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cGmAt.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance.</p>
  
  <p>Here is server log</p>
  
  <pre><code>&gt; info: [debug] [BOOTSTRAP] [debug] Finding Log out using NAME with the contextId:  multiple: false
  &gt; info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=Log out, INSTANCE=0]
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"ELEMENT":"2"}}
  &gt; info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"2"},"sessionId":"ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc"}
  &gt; info: &lt;-- POST /wd/hub/session/ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc/element 200 44.615 ms - 87 {"status":0,"value":{"ELEMENT":"2"},"sessionId":"ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc"}
  &gt; info: --&gt; POST /wd/hub/session/ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc/touch/perform {"actions":[{"action":"press","options":{"element":"2"}},{"action":"wait","options":{"ms":250}},{"action":"release","options":{}}]}
  &gt; info: [debug] Pushing command to appium work queue: ["element:getLocation",{"elementId":"2"}]
  &gt; info: [debug] Pushing command to appium work queue: ["element:getSize",{"elementId":"2"}]
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getLocation","params":{"elementId":"2"}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"x":-256,"y":932}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getSize","params":{"elementId":"2"}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"width":240,"height":81}}
  &gt; info: [debug] Pushing command to appium work queue: ["element:getLocation",{"elementId":"2"}]
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getLocation","params":{"elementId":"2"}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command action: getLocation
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"x":-256,"y":932}}
  &gt; info: [debug] Pushing command to appium work queue: ["element:getSize",{"elementId":"2"}]
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getSize","params":{"elementId":"2"}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command action: getSize
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"width":240,"height":81}}
  &gt; info: [debug] Pushing command to appium work queue: ["element:touchDown",{"elementId":"2","x":-136,"y":972.5}]
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:touchDown","params":{"elementId":"2","x":-136,"y":972.5}}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command action: touchDown
  &gt; info: [debug] [BOOTSTRAP] [debug] Performing TouchDown using element? true x: -136, y: 972
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":13,"value":"Failed to execute touch event"}
  &gt; info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Failed to execute touch event"},"sessionId":"ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc"}
  &gt; info: &lt;-- POST /wd/hub/session/ad4afb54-6f6d-4a39-bb60-49e4cbbcc4bc/touch/perform 500 211.167 ms - 198 
  &gt; info: [debug] Didn't get a new command in 60 secs, shutting down...
  &gt; info: Shutting down appium session
  &gt; info: [debug] Pressing the HOME button
  &gt; info: [debug] executing cmd: C:\Users\fission\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s f547bbb6 shell "input keyevent 3"
  &gt; info: [debug] Stopping logcat capture
  &gt; info: [debug] Logcat terminated with code null, signal SIGTERM
  &gt; info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
  &gt; info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
  &gt; info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
  &gt; info: [debug] [BOOTSTRAP] [debug] Closed client connection
  &gt; info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
  &gt; info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
  &gt; info: [debug] [UIAUTOMATOR STDOUT] Time: 82.744
  &gt; info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_RESULT: shortMsg=java.lang.SecurityException
  &gt; info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_RESULT: longMsg=Permission Denial: getIntentSender() from pid=21860, uid=2000, (need uid=1000) is not allowed to send as package android
  </code></pre>