is_displayed

The command to check if this element is displayed.

Syntax

Element.is_displayed() -> bool

Usage

correct usage
py.get("#button").is_displayed()

Arguments

  • None

Yields

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

"displayed" means that the element is in the DOM and has a size greater than zero such that it is visible to the user.

Last updated