wc_click_on: Click on a DOM element in a webclient loaded page

View source: R/wc-click.R

wc_click_onR Documentation

Click on a DOM element in a webclient loaded page

Description

Click on a DOM element in a webclient loaded page

Usage

wc_click_on(wc_obj, css, xpath)

Arguments

wc_obj

a webclient object

css, xpath

Node to click on. Supply one of css or xpath depending on whether you want to use a css or xpath 1.0 selector.

Note

The caller does not have to assign the output of this function to a variable as the browser state is managed internally by HtmlUnit.

Examples

w <- web_client()
wc_go(w, url = "https://hrbrmstr.github.io/htmlunitjars/index.html")
wc_click_on(w, "table")

hrbrmstr/htmlunit documentation built on July 4, 2025, 12:45 a.m.