id = "ferstHeading" # "firstHeading"
element = WebDriverWait(driver,10).until(
expected_conditions.presence_of_element_located((
By.ID, "ferstHeading")), 'element with id {} is not found'.format('ferstHeading'))
print( 'Found element "{}"'.format(element.get_attribute('outerHTML')))
Found element "<h1 id="firstHeading" class="firstHeading">Main Page</h1>"
traceback (most recent call last):
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException:
Message: element with id ferstHeading is not found
ip address show docker0
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Firefox()
driver.get("http://somedomain/url_that_delays_loading")
try:
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "myDynamicElement"))
)
finally:
driver.quit()
element = wait.until(EC.element_to_be_clickable((By.ID, 'someid')))
sendHeader("HTTP/1.1 301 Moved Permanently");
sendHeader("HTTP/1.1 302 Found");
вы не хотите поставить более старый virtualbox напр версий 5.2.20 ?
https://www.virtualbox.org/wiki/Changelog-5.2#v20
VirtualBox 5.2.20 (released October 16 2018)
или более старых
это может помочь