We are doing automation for a web application and most of the scenarios have a loading icon appearing at the center of a page. We need to wait for this loading icon to disappear.
The HTML:
<div id="loading" style="display: none; visibility: hidden;">
<div></div>
<div></div>
Example: We have search functionality in most of the scenarios. We are getting this loading icon while the search executes.
With the Selenium webdriver, we are using the ID.
We are getting for loading to complete id= "loading". Please any give any solution for the above issues I am facing.
We have a variety of subsequent testing functionality like clicks & sendkeys that can only be used once loading is complete.