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

TargetNestedElement

Locates a single web element located within another web element. Instead of using this class directly, please use Target.the instead.

Extends:

@serenity-js/core~Question → TargetNestedElement

See also:

Constructor Summary

Public Constructor
public

constructor(parent: Question<ElementFinder> | ElementFinder, child: Question<ElementFinder> | ElementFinder)

Method Summary

Public Methods
public

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

Makes the provided Actor answer this Question.

public

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

Public Constructors

public constructor(parent: Question<ElementFinder> | ElementFinder, child: Question<ElementFinder> | ElementFinder) source

Params:

NameTypeAttributeDescription
parent Question<ElementFinder> | ElementFinder
child Question<ElementFinder> | ElementFinder

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): TargetNestedElement source

Params:

NameTypeAttributeDescription
parent Question<ElementFinder> | ElementFinder