# Appium more than 1.8.1 run very slow on my application

**URL:** <https://discuss.appium.io/t/appium-more-than-1-8-1-run-very-slow-on-my-application/27626>\
**Category:** Issues/Bugs\
**Created:** [August 26, 2019, 3:05am UTC](https://discuss.appium.io/t/appium-more-than-1-8-1-run-very-slow-on-my-application/27626 "2019-08-26T03:05:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnhLe](https://discuss.appium.io/user_avatar/discuss.appium.io/anhle/32/6262_2.png) [@AnhLe](https://discuss.appium.io/u/AnhLe)\
**Post date:** [August 26, 2019, 3:05am UTC](https://discuss.appium.io/t/appium-more-than-1-8-1-run-very-slow-on-my-application/27626/1 "2019-08-26T03:05:29Z")

</div>

I am using  
Appium verion : 1.14.2  
Java client : 7.0.0  
My application : android 8.0 by java + Kotlin

Issue : page login very fast but after login, every action load very slow. some appium log below

[debug] [W3C (97a6e421)] Calling AppiumDriver.findElement() with args: [“xpath”,"//_[@text = ‘Tất cả’]",“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator  
[debug] [BaseDriver] Waiting up to 0 ms for condition  
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’  
[debug] [WD Proxy] Proxying [POST /element] to [POST  
{“strategy”:“xpath”,“selector”:"//_[@text = ‘Tất cả’]",“context”:"",“multiple”:false}  
[WD Proxy] Got an unexpected response: {“sessionId”:“babdd997-15c5-4227-9ee8-92b90f41e752”,“status”:7,“value”:“An element could not be located on the page using the given search parameters.”}  
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError  
[debug] [W3C (97a6e421)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.  
[debug] [W3C (97a6e421)] at AndroidUiautomator2Driver.findElOrEls (C:\Users\anhhl\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\find.js:75:11)  
[HTTP] \<-- POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element 404 108 ms - 419  
[HTTP]  
[HTTP] --\> POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element  
[HTTP] {“using”:“xpath”,“value”:"//_[@text = ‘Tất cả’]"}  
[debug] [W3C (97a6e421)] Calling AppiumDriver.findElement() with args: [“xpath”,"//_[@text = ‘Tất cả’]",“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator  
[debug] [BaseDriver] Waiting up to 0 ms for condition  
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’  
[debug] [WD Proxy] Proxying [POST /element] to [POST [http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element](http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element)] with body: {“strategy”:“xpath”,“selector”:"//_[@text = ‘Tất cả’]",“context”:"",“multiple”:false}  
[WD Proxy] Got an unexpected response: {“sessionId”:“babdd997-15c5-4227-9ee8-92b90f41e752”,“status”:7,“value”:“An element could not be located on the page using the given search parameters.”}  
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError  
[debug] [W3C (97a6e421)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.  
[debug] [W3C (97a6e421)] at AndroidUiautomator2Driver.findElOrEls (C:\Users\anhhl\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-android-driver\lib\commands\find.js:75:11)  
[HTTP] \<-- POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element 404 94 ms - 419  
[HTTP]  
[HTTP] --\> POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element  
[HTTP] {“using”:“xpath”,“value”:"//_[@text = ‘Tất cả’]"}  
[debug] [W3C (97a6e421)] Calling AppiumDriver.findElement() with args: [“xpath”,"//_[@text = ‘Tất cả’]",“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator  
[debug] [BaseDriver] Waiting up to 0 ms for condition  
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’  
[debug] [WD Proxy] Proxying [POST /element] to [POST {“strategy”:“xpath”,“selector”:"//_[@text = ‘Tất cả’]",“context”:"",“multiple”:false}  
[debug] [WD Proxy] Got response with status 200: {“sessionId”:“babdd997-15c5-4227-9ee8-92b90f41e752”,“status”:0,“value”:{“ELEMENT”:“e40e76cf-10d4-4290-9413-7322cd7eeab9”}}  
[debug] [W3C (97a6e421)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“e40e76cf-10d4-4290-9413-7322cd7eeab9”,“ELEMENT”:“e40e76cf-10d4-4290-9413-7322cd7eeab9”}  
[HTTP] \<-- POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element 200 10176 ms - 137  
[HTTP]  
[HTTP] --\> GET /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/displayed  
[HTTP] {}  
[debug] [W3C (97a6e421)] Calling AppiumDriver.elementDisplayed() with args: [“e40e76cf-10d4-4290-9413-7322cd7eeab9”,“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [WD Proxy] Matched ‘/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/displayed’ to command name ‘getAttribute’  
[debug] [WD Proxy] Proxying [GET /element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/displayed] to [GET [http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/displayed](http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/displayed)] with body: {}  
[debug] [WD Proxy] Got response with status 200: “{“sessionId”:“babdd997-15c5-4227-9ee8-92b90f41e752”,“status”:0,“value”:“true”}”  
[debug] [W3C (97a6e421)] Responding to client with driver.elementDisplayed() result: true  
[HTTP] \<-- GET /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/displayed 200 20109 ms - 14  
[HTTP]  
[HTTP] --\> GET /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/enabled  
[HTTP] {}  
[debug] [W3C (97a6e421)] Calling AppiumDriver.elementEnabled() with args: [“e40e76cf-10d4-4290-9413-7322cd7eeab9”,“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [WD Proxy] Matched ‘/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/enabled’ to command name ‘getAttribute’  
[debug] [WD Proxy] Proxying [GET /element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/enabled] to [GET [http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/enabled](http://localhost:8200/wd/hub/session/babdd997-15c5-4227-9ee8-92b90f41e752/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/attribute/enabled)] with body: {}  
[debug] [WD Proxy] Got response with status 200: “{“sessionId”:“babdd997-15c5-4227-9ee8-92b90f41e752”,“status”:0,“value”:“true”}”  
[debug] [W3C (97a6e421)] Responding to client with driver.elementEnabled() result: true  
[HTTP] \<-- GET /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/enabled 200 20195 ms - 14  
[HTTP]  
[HTTP] --\> POST /wd/hub/session/97a6e421-9fa1-4c78-95e4-59ba46f0cdb9/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/click  
[HTTP] {“id”:“e40e76cf-10d4-4290-9413-7322cd7eeab9”}  
[debug] [W3C (97a6e421)] Calling AppiumDriver.click() with args: [“e40e76cf-10d4-4290-9413-7322cd7eeab9”,“97a6e421-9fa1-4c78-95e4-59ba46f0cdb9”]  
[debug] [WD Proxy] Matched ‘/element/e40e76cf-10d4-4290-9413-7322cd7eeab9/click’ to command name ‘click’

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [August 30, 2019, 8:37pm UTC](https://discuss.appium.io/t/appium-more-than-1-8-1-run-very-slow-on-my-application/27626/2 "2019-08-30T20:37:13Z")

</div>

@AnhLe as first step stop using ‘xpath’
