def wait_until_visibility_of_element_located(self, how, what):
""" Wait until a located element is visible, which means that it's rendered and
the CSS display style is not "none".
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:
--------
button = wait_until_visibility_of_element_located(By.TAG_NAME, "button")
"""
return self.wait.until(EC.visibility_of_element_located((how, what)))
评论列表
文章目录