import {WebElementInteraction} from '@serenity-js/webdriverio/lib/screenplay/interactions'
public class | source

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 undefined.

Public Constructors

public constructor(description: string) source

Params:

NameTypeAttributeDescription
description string

A human-readable description to be used when reporting this Interaction.

Public Methods

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:

NameTypeAttributeDescription
actor AnswersQuestions
element Answerable<Element<'async'>>

Returns:

Promise<Element<'async'>>