Variable HeadingConst

Heading: any = HeadingInteractor

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.

await Heading('Welcome!').exists();
  • 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.