type
The command to type keys into a field, input or text box.
Syntax
Element.type(*args) -> ElementUsage
py.get("#username").type("my-username")
---or--- # combine with other keys and strings
# import the Keys from selenium
py.get("#search").type("puppies", Keys.ENTER)
---or--- # chain an Element command
py.get("#email").type("[email protected]").get_attribute("value")# Errors, 'type' may have no effect on other types of elements
py.get("a").type("foo")Arguments
Yields
Examples
Last updated