is_selected

The command that checks if the element is selected.

Syntax

Element.is_selected() -> bool

Usage

correct usage
py.get(".option").is_selected()

Arguments

  • None

Yields

  • bool - True if the element is selected, else False

Last updated