title: Appium 1.18.0 takes too long to look for elements
body: <p>I'm using c# and Appium + Selenium for Android emulator automation, and got a challenge that it takes too long to look for elements, I've tried on device it's the same. Could anyone help me with this please?</p>
  <p>The capability:</p>
  <pre><code>            appiumOptions.AddAdditionalCapability(&quot;deviceName&quot;, &quot;emulator&quot;);
              appiumOptions.AddAdditionalCapability(&quot;platformName&quot;, &quot;Android&quot;);
              appiumOptions.AddAdditionalCapability(&quot;platformVersion&quot;, &quot;10.0&quot;);
              appiumOptions.AddAdditionalCapability(&quot;appPackage&quot;, &quot;com.app&quot;);
              appiumOptions.AddAdditionalCapability(&quot;appActivity&quot;, &quot;com.app.MainActivity&quot;);
              appiumOptions.AddAdditionalCapability(&quot;automationName&quot;, &quot;UiAutomator2&quot;);
              appiumOptions.AddAdditionalCapability(&quot;app&quot;, ConfigReader.GetSetting(&quot;app&quot;));
  
              //appiumOptions.AddAdditionalCapability(&quot;autoGrantPermissions&quot;, true);
              //appiumOptions.AddAdditionalCapability(&quot;allowSessionOverride&quot;, true);
              appiumOptions.AddAdditionalCapability(&quot;disableWindowAnimation&quot;, true);
              appiumOptions.AddAdditionalCapability(&quot;waitForQuiescence&quot;, false);
  </code></pre>
  <p>The Driver:</p>
  <pre><code>public static AndroidDriver&lt;AndroidElement&gt; _driver;
  _driver = new AndroidDriver&lt;AndroidElement&gt;(new Uri(&quot;http://localhost:4723/wd/hub&quot;), appiumOptions, TimeSpan.FromSeconds(300));
  </code></pre>
  <p>Element:</p>
  <pre><code>public AndroidElement Usernameinputbox =&gt; _driver.FindElementByAccessibilityId(&quot;username-IconInput&quot;);
  Usernameinputbox.SendKeys(username);
  </code></pre>
  <p>According to Appium server log, it spent a lot of time on looking for elements. Input username as example:</p>
  <pre><code>[WD Proxy] Matched '/element' to command name 'findElement'
  [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8202/wd/hub/session/733a0a99-27a5-418a-8b3b-1219d55310ab/element] with body: {&quot;strategy&quot;:&quot;accessibility id&quot;,&quot;selector&quot;:&quot;username-IconInput&quot;,&quot;context&quot;:&quot;&quot;,&quot;multiple&quot;:false}
  [WD Proxy] Got response with status 200: {&quot;sessionId&quot;:&quot;733a0a99-27a5-418a-8b3b-1219d55310ab&quot;,&quot;value&quot;:{&quot;ELEMENT&quot;:&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;,&quot;element-6066-11e4-a52e-4f735466cecf&quot;:&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;}}
  [W3C (ad8951a0)] Responding to client with driver.findElement() result: {&quot;element-6066-11e4-a52e-4f735466cecf&quot;:&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;,&quot;ELEMENT&quot;:&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;}
  [HTTP] &lt;-- POST /wd/hub/session/ad8951a0-6ca8-4687-8b1d-50b8f691e971/element 200 1442 ms - 137
  [HTTP] 
  [HTTP] --&gt; POST /wd/hub/session/ad8951a0-6ca8-4687-8b1d-50b8f691e971/element/907853d0-a3e1-4587-8978-3e7721cdff48/value
  [HTTP] {&quot;text&quot;:&quot;name&quot;,&quot;value&quot;:[&quot;n&quot;,&quot;a&quot;,&quot;m&quot;,&quot;e&quot;]}
  [W3C (ad8951a0)] Calling AppiumDriver.setValue() with args: [[&quot;n&quot;,&quot;a&quot;,&quot;m&quot;,&quot;e&quot;],&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;,&quot;ad8951a0-6ca8-4687-8b1d-50b8f691e971&quot;]
  [WD Proxy] Matched '/element/907853d0-a3e1-4587-8978-3e7721cdff48/value' to command name 'setValue'
  [Protocol Converter] Added 'value' property [&quot;n&quot;,&quot;a&quot;,&quot;m&quot;,&quot;e&quot;] to 'setValue' request body
  [WD Proxy] Proxying [POST /element/907853d0-a3e1-4587-8978-3e7721cdff48/value] to [POST http://127.0.0.1:8202/wd/hub/session/733a0a99-27a5-418a-8b3b-1219d55310ab/element/907853d0-a3e1-4587-8978-3e7721cdff48/value] with body: {&quot;elementId&quot;:&quot;907853d0-a3e1-4587-8978-3e7721cdff48&quot;,&quot;text&quot;:&quot;name&quot;,&quot;replace&quot;:false,&quot;value&quot;:[&quot;n&quot;,&quot;a&quot;,&quot;m&quot;,&quot;e&quot;]}
  [WD Proxy] Got response with status 200: {&quot;sessionId&quot;:&quot;733a0a99-27a5-418a-8b3b-1219d55310ab&quot;,&quot;value&quot;:null}
  [W3C (ad8951a0)] Responding to client with driver.setValue() result: null
  [HTTP] &lt;-- POST /wd/hub/session/ad8951a0-6ca8-4687-8b1d-50b8f691e971/element/907853d0-a3e1-4587-8978-3e7721cdff48/value 200 50960 ms - 14
  [HTTP] 
  [HTTP] --&gt; POST /wd/hub/session/ad8951a0-6ca8-4687-8b1d-50b8f691e971/element
  </code></pre>