Helium文档4-WebUI自动化-write写入
前言
write方法是模拟在输入框中写入数据
write入参说明
def write(text, into=None): """ :param text: The text to be written. :type text: one of str, unicode :param into: The element to write into. :type into: one of str, unicode, :py:class:`HTMLElement`, \ :py:class:`selenium.webdriver.remote.webelement.WebElement`, :py:class:`Alert` * the given text into the active window. If parameter 'into' is given, writes the text into the text field or element identified by that parameter. Common examples of 'write' are:: write("Hello World!") write("user12345", into="Username:") write("Michael", into=Alert("Please enter your name")) """ _get_api_impl().write_impl(text, into)