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

Description Usage Arguments Note Examples

View source: R/wc-click.R

Description

Click on a DOM element in a webclient loaded page

Usage

1
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

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

hrbrmstr/htmlunit documentation built on Aug. 19, 2020, 3:05 p.m.