Due to random loading times of the website that I'm working with, I have to wait for certain html elements to appear in order to work with them. I ve used the time.sleep command for testing purposes, but wanna optimize everything now. I ve tried various explicit wait suggestions from the web but all of them collided at some point.
Here is a code example:
folder = driver.find_element_by_xpath("//button[@id='submit']")
folder.click()
time.sleep(6)
folder = driver.find_element_by_xpath("//button[@ngbtooltip='Create New Project']")
folder.click()
Thanks in advance guys!