# Appium: Can not get element of loading icon and wait it

**URL:** <https://forum.katalon.com/t/appium-can-not-get-element-of-loading-icon-and-wait-it/47042>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [September 3, 2020, 4:51am UTC](https://forum.katalon.com/t/appium-can-not-get-element-of-loading-icon-and-wait-it/47042 "2020-09-03T04:51:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangtranbaophuong](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dangtranbaophuong](https://forum.katalon.com/u/dangtranbaophuong)\
**Post date:** [September 3, 2020, 4:51am UTC](https://forum.katalon.com/t/appium-can-not-get-element-of-loading-icon-and-wait-it/47042/1 "2020-09-03T04:51:43Z")

</div>

Hi everyone.

I am automating for a mobile application  
I can’t get the element of the loading icon so can wait to implement the next action. I used UI Automator tool and Spy object of katalon tool but can not get it  
**Note:** When the loading icon is loading then the script still send key  
I need your help.  
Please see the below attachment

 ![Loading](https://europe1.discourse-cdn.com/katalon/original/2X/d/dddfd02215686a449ddf57b19bcd996a256162ef.png)

---

<div class="post-metadata">

**Author:** ![francoarebuffi](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/francoarebuffi/32/16103_2.png) [@francoarebuffi](https://forum.katalon.com/u/francoarebuffi)\
**Post date:** [September 5, 2020, 12:06am UTC](https://forum.katalon.com/t/appium-can-not-get-element-of-loading-icon-and-wait-it/47042/2 "2020-09-05T00:06:47Z")

</div>

Hi Dan, instead of waiting the loading icon, as a workaround why dont you wait for an element of the next page?..  
Maybe a waitforelementvisible() and scpecifying some timeout to wait for that element of the following page( example: any button or element that is not in the previous page)

---

<div class="post-metadata">

**Author:** ![dangtranbaophuong](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dangtranbaophuong](https://forum.katalon.com/u/dangtranbaophuong)\
**Post date:** [September 9, 2020, 3:56am UTC](https://forum.katalon.com/t/appium-can-not-get-element-of-loading-icon-and-wait-it/47042/3 "2020-09-09T03:56:28Z")

</div>

Hi @ [francoarebuffi](http://forum.katalon.com/u/francoarebuffi)

Thanks for your support but this loading icon displays a lot of places and some cases don’t have any other element to wait so I have to use the Delay feature.  
waitforelementvisible() =\> I could not use this waiting due to when the loading icon displays then all elements on this screen are visible.I’m checked it ☹  
So I hope will have another way to resolve it 🙂

Thanks
