current_url: Get the URL of the current page

View source: R/global_actions.R

current_urlR Documentation

Get the URL of the current page

Description

Get the full URL of the current page.

Usage

current_url(session = NULL)

Arguments

session

Optionally, a selenider_session object.

Value

A string: the current URL.

See Also

Other global actions: back(), execute_js_fn(), get_page_source(), open_url(), reload(), scroll_to(), take_screenshot()

Examples


session <- selenider_session()

open_url("https://r-project.org")

current_url()


selenider documentation built on April 3, 2025, 5:51 p.m.