import {TargetElement} from '@serenity-js/protractor/lib/screenplay/questions/targets'
TargetElement
Locates a single web element. Instead of using this class directly, please use Target.the instead.
Extends:
@serenity-js/core~Question → TargetElement
Tests:
See also:
Constructor Summary
Public Constructor | ||
public |
constructor(description: string, locator: Locator) |
Method Summary
Public Methods | ||
public |
answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<void> |
|
public |
of(parent: Question<ElementFinder> | ElementFinder): TargetNestedElement |
Public Constructors
public constructor(description: string, locator: Locator) source
Params:
Name | Type | Attribute | Description |
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
Params:
Name | Type | Attribute | Description |
actor | AnswersQuestions & UsesAbilities |
Returns:
Promise<void> |
public of(parent: Question<ElementFinder> | ElementFinder): TargetNestedElement source
Params:
Name | Type | Attribute | Description |
parent | Question<ElementFinder> | ElementFinder |