Script running very slow. No exception coming after Explicit wait but any click event is very delayed

OS : Android Version 11
Appium Version : 1.21.0
Real Device
Code Snippet used for click element method :

wait = new WebDriverWait(driver, 10);

It is not throwing exception after 10 seconds. Script seems to be paused
No Implicit wait is used and no Static wait is there but still script is running very slow.

why not try:

WebDriverWait wait = new WebDriverWait(driver, 10);

If its C# I can’t tell based on the snippet Expected Conditions are obsolete excepts for an old Nugget package that has it but its not really maintained.

It is in Java. @Aleksei driver.findelement will work on Implicit wait and Expeced condtions for Explicit wait. We dont mix both of these waits .
Also I have tried using Explicit wait and Implicit wait individually but no success.

It is a bit different approach that written in your code:

your code:

  • find element (no idea how. you did not mention this code)
  • wait element to be clickable
  • click


  • wait when element with X locater appear and will be clickable
  • find element again and click

in your approach element that you find may already absent on screen just due to screen redraw. but you trying to wait it to be clickable… which may never happen.