I'm trying to use WebDriverWait in order to check if I can see the expected dashboard url got loaded and also I check for the presence of an mandatory logo. I have the relevant code below,
if WebDriverWait (driver, 30).until(EC.url_to_be(<expected_dashboard_url>) and driver.find_elements_by_id(<logo_id>):
print("Successful")
I see that the dashboard url gets loaded properly on the browser with the expected mandatory logo on page as well but on my console I don't see "Successful" message, insted it keeps waiting and leads to TimeoutException.
Note : All necessary imports done and webdriver instantiated correctly.