externalPageElementsLocator <Native_Element_Type>
Hierarchy
- Question<Promise<PageElement<Native_Element_Type>[]>>
- PageElementsLocator
Implements
- ChainableMetaQuestion<PageElement<Native_Element_Type>, Question<Promise<PageElement<Native_Element_Type>[]>>>
Index
Constructors
Methods
Constructors
externalconstructor
Type parameters
- Native_Element_Type = any
Parameters
externallocator: Answerable<Locator<Native_Element_Type, any>>
Returns PageElementsLocator<Native_Element_Type>
Methods
staticexternalfromDocumentRoot
Type parameters
- NET
Parameters
externalselector: Answerable<Selector>
Returns PageElementsLocator<NET>
externaldescribedAs
Parameters
externaldescription: Answerable<string> | MetaQuestion<PageElement<Native_Element_Type>[], Question<Promise<string>>>
Replaces the current description according to the following rules:
- If
description
is anAnswerable
, it replaces the current description - If
description
is aMetaQuestion
, the current description is passed ascontext
todescription.of(context)
, and the result replaces the current description
- If
Returns this
externalas
Maps this question to one of a different type.
Question.about('number returned as string', actor => '42') // returns: QuestionAdapter<string>
.as(Number) // returns: QuestionAdapter<number>Type parameters
- O
Parameters
externalmapping: (answer: PageElement<Native_Element_Type>[]) => O | Promise<O>
Returns QuestionAdapter<O>
externaldescribedBy
Resolves the description of this object in the context of the provided
actor
.Parameters
externalactor: AnswersQuestions & UsesAbilities & { name: string }
Returns Promise<string>
externaltoString
Returns a human-readable description of this object.
Returns string
externalof
Parameters
externalparent: Answerable<PageElement<Native_Element_Type>>
Returns Question<Promise<PageElement<Native_Element_Type>[]>> & ChainableMetaQuestion<PageElement<Native_Element_Type>, Question<Promise<PageElement<Native_Element_Type>[]>>>
externalansweredBy
Parameters
externalactor: AnswersQuestions & UsesAbilities
Returns Promise<PageElement<Native_Element_Type>[]>
Changes the description of this object, as returned by
Describable.describedBy
andDescribable.toString
.