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

Value

Resolves to the value of a given input WebElement, represented by ElementFinder or Question<ElementFinder>.

Extends:

Question → Value

Implements:

Static Method Summary

Static Public Methods
public static

of(target: Question<ElementFinder> | ElementFinder): Value

Constructor Summary

Public Constructor
public

constructor(target: 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): Question<Promise<string[]>>

Resolves to the value of a given input WebElement, located in the context of a parent element.

Static Public Methods

public static of(target: Question<ElementFinder> | ElementFinder): Value source

Params:

NameTypeAttributeDescription
target Question<ElementFinder> | ElementFinder

Returns:

Value

Public Constructors

public constructor(target: Question<ElementFinder> | ElementFinder) source

Params:

NameTypeAttributeDescription
target 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): Question<Promise<string[]>> source

Resolves to the value of a given input WebElement, located in the context of a parent element.

Params:

NameTypeAttributeDescription
parent Question<ElementFinder> | ElementFinder

Returns:

Question<Promise<string[]>>