import {WebElementInteraction} from '@serenity-js/webdriverio/lib/screenplay/interactions'
WebElementInteraction
A base class for WebdriverIO-specific interactions
Extends:
Interaction → WebElementInteraction
Direct Subclasses:
Constructor Summary
Public Constructor | ||
public |
constructor(description: string) |
Method Summary
Public Methods | ||
public |
toString(): string Generates a description to be used when reporting this Activity. |
Protected Methods | ||
protected |
async resolve(actor: AnswersQuestions, element: Answerable<Element<'async'>>): Promise<Element<'async'>> Returns the resolved Element, or throws a LogicError
if the element is |
Public Constructors
public constructor(description: string) source
Params:
Name | Type | Attribute | Description |
description | string | A human-readable description to be used when reporting this Interaction. |
Public Methods
public toString(): string source
Generates a description to be used when reporting this Activity.
Returns:
string |
Tests:
- RightClick provides a sensible description of the interaction being performed
- Click provides a sensible description of the interaction being performed
- DoubleClick provides a sensible description of the interaction being performed
- Enter provides a sensible description of the interaction being performed
- Hover provides a sensible description of the interaction being performed
Protected Methods
protected async resolve(actor: AnswersQuestions, element: Answerable<Element<'async'>>): Promise<Element<'async'>> source
Returns the resolved Element, or throws a LogicError
if the element is undefined
.
Params:
Name | Type | Attribute | Description |
actor | AnswersQuestions | ||
element | Answerable<Element<'async'>> |