def wait_until_text_inside_element_located(self, how, what, text):
""" Wait until a located element contains some text
Parameters
----------
how: String
How you want to locate the element. See selenium.webdriver.common.by
what: String
What you want to locate.
text: String
The text which must be contained by the located element
Returns:
--------
element:
The element founded
Example:
--------
conclusion_title = wait_until_text_inside_element_located(
By.TAG_NAME, "h3", "Conclusion")
"""
return self.wait.until(EC.text_to_be_present_in_element((how, what), text))
评论列表
文章目录