Additional Questions

These are the Questions added in ScreenPy Playwright.

Number

class Number(target: Target)

Ask how many of an element are on the page.

Examples:

the_actor.should(See.the(Number.of(CONFETTI), IsEqualTo(10)))
static of(target: Target) Number

Supply the Target to count.

Args:

target: the Target which describes the element to count.

Returns:

A new Number instance.

Text

class Text(target: Target)

Ask for the text from a Target.

Examples:

the_actor.should(
    See.the(Text.of_the(WELCOME_BANNER), ReadsExactly("Welcome!"))
)
static of_the(target: Target) Text

Supply the Target whose text to read.

Args:

target: the Target which describes the Element to read.

Returns:

A new instance of Text.