I am implementing selenium automated web tests on salesforce lightning page. Between different test steps, the test need wait until the web page is completely loaded, so that the web element is visible or clickable, e.g. Click a dropdown menu will open a new saleforce lightning component, then enter some value in a text field in the new opened component.
Saleforce lightning use the aura framework. How can we check if the page (all components) is loaded? How can we check the ajax in salesforce lightning page is done?