# Caching issues while testing Mobile Application using Web views

**URL:** <https://forum.katalon.com/t/caching-issues-while-testing-mobile-application-using-web-views/152550>\
**Category:** Mobile Testing\
**Tags:** cache, mobile-testing\
**Created:** [October 25, 2024, 12:32am UTC](https://forum.katalon.com/t/caching-issues-while-testing-mobile-application-using-web-views/152550 "2024-10-25T00:32:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien.treyvaud](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sebastien.treyvaud/32/23870_2.png) [@sebastien.treyvaud](https://forum.katalon.com/u/sebastien.treyvaud)\
**Post date:** [October 25, 2024, 12:32am UTC](https://forum.katalon.com/t/caching-issues-while-testing-mobile-application-using-web-views/152550/1 "2024-10-25T00:32:43Z")

</div>

Hello Community,

I am facing an issue while testing a mobile app using Web views.  
This problem occurs after several iterations of tests. My test is a data driven test with more than 20 iterations with various data.

After a certain amount of iterations, Katalon / Appium can’t locate anymore my elements in Web views.  
My colleagues and me identified that the problem is related to the application data / caching, as after Clearing the app storage and restarting the application, the tests work again.

NB: When we only stop and restart the application without removing the application data, the problem still occurs.

My question is the following:  
Does anybody have an advice how to perform a Application data clearing from Katalon, working both with Android and with iOS after N iterations?  
However, having the possibility to do it already for Android would be a great help.

Thank you in advance for your ideas and comments.
