import {TargetElements} from '@serenity-js/webdriverio/lib/screenplay/questions'
TargetElements
You probably don't want to use this class directly. See Target instead.
Extends:
Question → TargetElements
Implements:
Tests:
- Target allows the actor to locate all web elements matching the selector
- Target provides a sensible description of elements that are being targeted
- Target when filtering a list of targets and no filters are applied lets the actor interact with the list of matching elements so that it picks all the items
- Target when filtering a list of targets and no filters are applied lets the actor interact with the list of matching elements so that it picks the first item
- Target when filtering a list of targets and no filters are applied lets the actor interact with the list of matching elements so that it picks the last item
- Target when filtering a list of targets and no filters are applied lets the actor interact with the list of matching elements so that it picks the nth item
- Target when filtering a list of targets and a filter is applied lets the actor filter the list of matching elements so that it gets the number of items
- Target when filtering a list of targets and a filter is applied lets the actor filter the list of matching elements so that it picks all the items
- Target when filtering a list of targets and a filter is applied lets the actor filter the list of matching elements so that it picks the first item
- Target when filtering a list of targets and a filter is applied lets the actor filter the list of matching elements so that it picks the last item
- Target when filtering a list of targets and a filter is applied lets the actor filter the list of matching elements so that it picks the nth item
See also:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
answeredBy(actor: AnswersQuestions & UsesAbilities): Promise |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
of(parent: Answerable): TargetNestedElements |
|
public |
where(question: MetaQuestion, expectation: Expectation): TargetList |
Public Constructors
public constructor() source
Public Methods
public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise source
Params:
Name | Type | Attribute | Description |
actor | AnswersQuestions & UsesAbilities |
Returns:
Promise |
public of(parent: Answerable): TargetNestedElements source
Params:
Name | Type | Attribute | Description |
parent | Answerable |
public where(question: MetaQuestion, expectation: Expectation): TargetList source
Params:
Name | Type | Attribute | Description |
question | MetaQuestion | ||
expectation | Expectation |