Additional Resolutions

ScreenPy Selenium adds the following Resolutions. For the base Resolution list, see ScreenPy’s Resolutions API reference.

IsClickable

Aliases: Clickable, Enabled, IsEnabled

class IsClickable

Match on a clickable element.

Examples:

the_actor.should(See.the(Element(LOGIN_BUTTON), IsClickable()))

IsVisible

Aliases: Displayed, IsDisplayed, Visible

class IsVisible

Match on a visible element.

Examples:

the_actor.should(See.the(Element(WELCOME_BANNER), IsVisible()))

IsInvisible

Aliases: IsNotDisplayed, NotDisplayed, Invisible

class IsInvisible

Match on an invisible element.

Examples:

the_actor.should(See.the(Element(WELCOME_BANNER), IsInvisible()))

IsPresent

Aliases: Present, Exists, Exist

class IsPresent

Match on a present element.

Examples:

the_actor.should(See.the(Element(HIDDEN_BUTTON), IsPresent()))
the_actor.should(See.the(Element(DISABLED_BUTTON), Exists()))
the_actor.should(See.the(Element(BUTTON), DoesNot(Exist())))