Topics:
Number
Text
These are the Questions added in ScreenPy Playwright.
Ask how many of an element are on the page.
Examples:
the_actor.should(See.the(Number.of(CONFETTI), IsEqualTo(10)))
Supply the Target to count.
target: the Target which describes the element to count.
A new Number instance.
Ask for the text from a Target.
the_actor.should( See.the(Text.of_the(WELCOME_BANNER), ReadsExactly("Welcome!")) )
Supply the Target whose text to read.
target: the Target which describes the Element to read.
A new instance of Text.