Headingvariable

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

await Heading('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.

← Back to @interactors/html