Android Emulator: Delay in 3 secs after clicking the element


  • Windows 10
  • Appium v1.4.13
  • Node.js 6.3.0 (npm 3.10.3)
  • Android Emulator (Nexus 5, API v.23)
  • Java

I use an instance of AppiumDriver, invoking findElement(By.xpath("//someXpathLocator")) on it. Then I invoke the click() method on received MobileElement instance.

In one view this click takes 200ms to complete. In another - 3200ms. It’s obvious that there is an explicit wait in 3000ms, and I suppose it is the server who waits for something.

Can you please tell me how can I remove this wait?

Here is the part of log for the click that takes a long time (>3 seconds) to complete:
info: [debug] Pushing command to appium work queue: [“element:click”,{“elementId”:“79”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“79”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“8bd8a688-a6aa-4da3-8f7c-a8f31a105d81”}
info: <-- POST /wd/hub/session/8bd8a688-a6aa-4da3-8f7c-a8f31a105d81/element/79/click 200 3108.307 ms - 76 {“status”:0,“value”:true,“sessionId”:“8bd8a688-a6aa-4da3-8f7c-a8f31a105d81”}