1, it is not such as lack of time, usually with a smart wait
While waiting for the element, it can be:
The position of elements on the page #
= self.acceMan "// INPUT [@ ID = 'username']"
# locate the element by XPath
Locator (By.XPATH, self.acceMan) =
# tested once every 1s, time 30s, until you find the element
WebDriverWait (self.driver, 30, 1) .until (EC.visibility_of_element_located (Locator))
2, this element is not looking at the html page when writing the positioning wrong, whether there is frame, if so, the first switch to frame
self.driver.switch_to.frame(self.driver.find_element_by_xpath(self.iframe1))