Click on a DOM element in a webclient loaded page

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")