def wait_until_clickability_of_element_located(self, how, what):
""" Wait until an element is clickable, which means that it's visible,
enabled and nothing is above this element.
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_clickability_of_element_located(By.TAG_NAME, "button")
button.click()
"""
return self.wait.until(EC.element_to_be_clickable((how, what)))
评论列表
文章目录