Call this InteractorConstructor to initialize a heading Interactor.
The heading interactor can be used to assert on the state of headings on the page,
represented by the h1 through h6 tags.
Example
awaitHeading('Welcome!').exists();
Filters
level: number – The level of the heading, for example, the level of h3 is 3.
visible: boolean – Filter by visibility. Defaults to true. See isVisible.
Call this InteractorConstructor to initialize a heading Interactor. The heading interactor can be used to assert on the state of headings on the page, represented by the
h1
throughh6
tags.Example
Filters
level
: number – The level of the heading, for example, the level ofh3
is3
.visible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.