Skip to main content

By

Index

Constructors

constructor

  • new By(): By
  • Returns By

Methods

staticcss

  • css(selector: Answerable<string>): Question<Promise<ByCss>>

staticcssContainingText

  • cssContainingText(selector: Answerable<string>, text: Answerable<string>): Question<Promise<ByCssContainingText>>

staticdeepCss

  • deepCss(selector: Answerable<string>): Question<Promise<ByCss>>

staticid

  • id(selector: Answerable<string>): Question<Promise<ById>>
  • Locates a PageElement using its id.


    Parameters

    • selector: Answerable<string>

    Returns Question<Promise<ById>>

statictagName

  • tagName(selector: Answerable<string>): Question<Promise<ByTagName>>

staticxpath

  • xpath(selector: Answerable<string>): Question<Promise<ByXPath>>