def wait_until_presence_of_element_located(self, how, what):
""" Wait until a located element is present
Parameters
----------
how: String
How you want to locate the element. See selenium.webdriver.common.by
what: String
What you want to locate.
Returns:
--------
element:
The element founded
Example:
--------
start_button = wait_until_presence_of_element_located(
By.ID, "start-button")
iframe = wait_until_presence_of_element_located(By.TAG_NAME, "iframe")
"""
return self.wait.until(EC.presence_of_element_located((how, what)))
评论列表
文章目录