driver = webdriver.Firefox()
driver.get(
    'https://www-01.ibm.com/products/hardware/configurator/americas/bhui/launchNI.wss'
    )
driver.find_element_by_id('modelnumber').send_keys('7383AC1')
driver.find_element_by_name('submit').click()
element1 = driver.find_element_by_xpath(
    "//label[contains(text(),'SLES for SAP Apps 8 Skt Virt Unlimited Subs Only 5Yr (5731SLX)')]"
    )
id = element1.get_attribute('for')
driver.find_element_by_id(id).click()
print(driver.title)
wait = ui.WebDriverWait(driver, 300)
image1 = driver.find_element_by_xpath("//img[@src='//www.ibm.com/i/c.gif']")
print(image1.get_attribute('class'))
div1 = driver.find_element_by_id('genMask_c')
wati.until(EC.staleness_of(driver.find_element_by_id('genMask_c')), 'visible')
driver.find_element_by_id('continueTop').click()
print(driver.title)
How to deal with time out exception for wait.until