Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.59 KB

File metadata and controls

64 lines (44 loc) · 1.59 KB

Back to overview

Reload

The Reload class is an action class in the Screenplay pattern designed for use with the @testla/screenplay library. This class enables actors to reload the currently browsed page using the BrowseTheWeb ability provided by Testla.

Table of Contents

Class Overview

Methods

performAs

public async performAs(actor: Actor): Promise<any>;
  • Description: Reloads the current page.
  • Parameters:
    • actor - The actor performing this action.
  • Returns: Promise<any> - Returns the main resource response.

page

public static page(): Reload;
  • Description: Creates a new instance of the Reload class specifically for reloading the currently browsed page.
  • Returns: Reload - Returns a new Reload instance.

withAbilityAlias

public withAbilityAlias(alias: string): Reload;
  • Description: Defines the ability alias to be used during execution.
  • Parameters:
    • alias - The alias.
  • Returns: Reload - Returns the current action.

orSkipOnFail

Introduced in: 1.6.0

public get orSkipOnFail(): Reload;
  • Description: Allows to skip an action on fail.
  • Returns: Reload - Returns the current action.

Back to overview