goto: Page class: Go to a URL

View source: R/nav_utils.R

gotoR Documentation

Page class: Go to a URL

Description

The goto function navigates the page object within a web browser session to the specified URL.

Usage

goto(page_df, url)

Arguments

page_df

A data frame containing page information, including the page_id column. This data frame is used to identify the page object where the navigation will occur.

url

A character string representing the URL to navigate to.

Value

The updated page_df data frame.

Examples

# Create a page_df data frame
page_df <- data.frame(page_id = "my_page")

# Navigate to a URL using the page_df
goto(page_df, "https://www.example.com")



benjaminguinaudeau/playwrightr documentation built on Nov. 8, 2023, 8:36 p.m.