externalPageElementList <Native_Element_Type>
Hierarchy
- MetaList<PageElement<Native_Element_Type>, PageElement<Native_Element_Type>>
- PageElementList
Index
Constructors
externalconstructor
Type parameters
- Native_Element_Type = any
Parameters
externalcollection: Answerable<PageElement<Native_Element_Type>[]> & ChainableMetaQuestion<PageElement<Native_Element_Type>, Question<Promise<PageElement<Native_Element_Type>[]>> | Question<PageElement<Native_Element_Type>[]>>
Returns PageElementList<Native_Element_Type>
Methods
externaldescribedAs
Changes the description of this object, as returned by
Describable.describedByandDescribable.toString.Parameters
externaldescription: Answerable<string> | MetaQuestion<PageElement<Native_Element_Type>[], Question<Promise<string>>>
Replaces the current description according to the following rules:
- If
descriptionis anAnswerable, it replaces the current description - If
descriptionis aMetaQuestion, the current description is passed ascontexttodescription.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
externalforEach
Parameters
externalcallback: (current: CurrentItem<PageElement<Native_Element_Type>>, index: number, items: PageElement<Native_Element_Type>[]) => void | Promise<void>
Returns Task
externalansweredBy
Parameters
externalactor: AnswersQuestions & UsesAbilities
Returns Promise<PageElement<Native_Element_Type>[]>
externaleachMappedTo
Type parameters
- Mapped_Item_Type
Parameters
externalquestion: MetaQuestion<PageElement<Native_Element_Type>, Question<Mapped_Item_Type | Promise<Mapped_Item_Type>>>
Returns MetaList<PageElement<Native_Element_Type>, Mapped_Item_Type>
externalcount
Returns MetaQuestionAdapter<PageElement<Native_Element_Type>, number>
externalof
Parameters
externalcontext: Answerable<PageElement<Native_Element_Type>>
Returns PageElementList<Native_Element_Type>
externalwhere
Parameters
externalexpectation: Expectation<PageElement<Native_Element_Type>>
Returns PageElementList<Native_Element_Type>
externalfirst
Returns Question<Promise<PageElement<Native_Element_Type>>> & Interaction & { isPresent: any } & Omit<QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>>, of | element | elements> & { of: any; element: any; elements: any } & { isPresent: any } & QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>> & MetaQuestion<PageElement<Native_Element_Type>, QuestionAdapter<PageElement<Native_Element_Type>>>
externallast
Returns Question<Promise<PageElement<Native_Element_Type>>> & Interaction & { isPresent: any } & Omit<QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>>, of | element | elements> & { of: any; element: any; elements: any } & { isPresent: any } & QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>> & MetaQuestion<PageElement<Native_Element_Type>, QuestionAdapter<PageElement<Native_Element_Type>>>
externalnth
Parameters
externalindex: number
Returns Question<Promise<PageElement<Native_Element_Type>>> & Interaction & { isPresent: any } & Omit<QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>>, of | element | elements> & { of: any; element: any; elements: any } & { isPresent: any } & QuestionAdapterFieldDecorator<PageElement<Native_Element_Type>> & MetaQuestion<PageElement<Native_Element_Type>, QuestionAdapter<PageElement<Native_Element_Type>>>
A MetaList of PageElements whose
.first(),.last(), and.nth()return PageElementAdapter instead of plainMetaQuestionAdapter, preserving.element()and.elements()for continued fluent chaining.