import {TargetElements} from '@serenity-js/protractor/lib/screenplay/questions/targets'
public class | source

TargetElements

Locates a group of web element. Instead of using this class directly, please use Target.all instead.

Extends:

@serenity-js/core~Question → TargetElements

See also:

Constructor Summary

Public Constructor
public

constructor(description: string, locator: Locator)

Method Summary

Public Methods
public

answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<void>

Makes the provided Actor answer this Question.

public

of(parent: Question<ElementFinder> | ElementFinder): TargetNestedElements

Public Constructors

public constructor(description: string, locator: Locator) source

Params:

NameTypeAttributeDescription
description string

A human-readable description to be used in the report

locator Locator

A locator to be used when locating the element

Public Methods

public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<void> source

Makes the provided Actor answer this Question.

Params:

NameTypeAttributeDescription
actor AnswersQuestions & UsesAbilities

Returns:

Promise<void>

public of(parent: Question<ElementFinder> | ElementFinder): TargetNestedElements source

Params:

NameTypeAttributeDescription
parent Question<ElementFinder> | ElementFinder