Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.67 KB

File metadata and controls

66 lines (46 loc) · 1.67 KB

Back to overview

Navigate

The Navigate class is an action class in the Screenplay pattern designed for use with the @testla/screenplay library. This class enables actors to navigate to a specified URL using the BrowseTheWeb ability provided by Testla.

Table of Contents

Class Overview

Methods

performAs

public async performAs(actor: Actor): Promise<any>;
  • Description: Navigates to the specified URL.
  • Parameters:
    • actor - The actor performing this action.
  • Returns: Promise<any> - Returns the main resource response.

to

public static to(url: string): Navigate;
  • Description: Creates a new instance of the Navigate class specifically for navigating to a certain URL.
  • Parameters:
    • url - The URL which should be accessed.
  • Returns: Navigate - Returns a new Navigate instance.

withAbilityAlias

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

orSkipOnFail

Introduced in: 1.6.0

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

Back to overview