Selenium waits
Tutorials

All you need to know about Selenium waits and their purpose