Class WebDriverNavigation

Interface for navigating back and forth in the browser history.

Index

Constructor methods

Methods

Constructor methods

constructor(driver: WebDriver): WebDriverNavigation

constructor

Parameters

Returns

WebDriverNavigation

Methods

public back(): Promise

Schedules a command to move backwards in the browser history.

Returns

Promise

A promise that will be resolved when the navigation event has completed.

public forward(): Promise

Schedules a command to move forwards in the browser history.

Returns

Promise

A promise that will be resolved when the navigation event has completed.

public refresh(): Promise

Schedules a command to refresh the current page.

Returns

Promise

A promise that will be resolved when the navigation event has completed.

public to(url: string): Promise

Schedules a command to navigate to a new URL.

Parameters

  • url: string

    The URL to navigate to.

Returns

Promise

A promise that will be resolved when the URL has been loaded.