focus
The command to switch focus to the element.
Syntax
Element.focus() -> Element
Usage
py.get(".menu").focus()
# Errors, Pylenium doesn't have a focus() command
py.focus()
Arguments
None
Yields
Element - The element that has been focused
Last updated