Why We Use wait in Selenium?
By refreshing the complete online page and reloading the new web elements, waits assist the user in troubleshooting issues while re-directing to different web pages. There may be some Ajax calls as well. As a result, there is a temporal lag while reloading web pages and reflecting web elements.