Selenium is not properly determining if a page has a <title> html tag
问题 I'm trying to get Selenium to wait until the title tag of a web page is present when loading with Python. I've tried testing this code with other types of HTML tags and only the <body> tag didn't result in an error. wait = WebDriverWait(driver, 10) driver.get(link) wait.until(EC.visibility_of_element_located((By.TAG_NAME, 'div'))) I expected the code to evaluate to completion but I got the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib