def type_text_in_element_located(self, how, what, text):
""" Type text into an located element.
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 that you want to type in the element
Example:
--------
type_text_in_element_located(By.TAG_NAME, "input", "Hello World!")
"""
element = self.wait_until_clickability_of_element_located(how, what)
element.clear()
element.send_keys(text)
评论列表
文章目录