Skip to content

Commit

Permalink
docs: add example of navigation back/forward
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Apr 12, 2024
1 parent 315dde3 commit 1dad30d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/core/engine/command/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class Navigation {
* Navigates backward in the browser's history.
*
* @async
* @example await commands.navigation.back();
* @param {Object} [options] - Additional options for navigation. Set {wait:true} to wait for the page complete check to run.
* @returns {Promise<void>} A promise that resolves when the navigation action is completed.
* @throws {Error} Throws an error if navigation fails.
Expand All @@ -46,6 +47,7 @@ export class Navigation {
* Navigates forward in the browser's history.
*
* @async
* @example await commands.navigation.forward();
* @param {Object} [options] - Additional options for navigation. Set {wait:true} to wait for the page complete check to run.
* @returns {Promise<void>} A promise that resolves when the navigation action is completed.
* @throws {Error} Throws an error if navigation fails.
Expand All @@ -68,6 +70,7 @@ export class Navigation {
* Refreshes the current page.
*
* @async
* @example await commands.navigation.refresh();
* @param {Object} [options] - Additional options for refresh action. Set {wait:true} to wait for the page complete check to run.
* @returns {Promise<void>} A promise that resolves when the page has been refreshed.
* @throws {Error} Throws an error if refreshing the page fails.
Expand Down

0 comments on commit 1dad30d

Please sign in to comment.