web_client: Create a new HtmlUnit WebClient instance

View source: R/web-client.R

web_clientR Documentation

Create a new HtmlUnit WebClient instance

Description

A new HtmlUnit web client (virtual browser) will be created and a webclient object will be returned.

Usage

web_client(
  emulate = c("best", "chrome", "firefox", "ie", "edge"),
  proxy_host = NULL,
  proxy_port = NULL
)

webclient(
  emulate = c("best", "chrome", "firefox", "ie", "edge"),
  proxy_host = NULL,
  proxy_port = NULL
)

Arguments

emulate

browser to emulate; one of "best", "chrome", "firefox", "ie"

proxy_host, proxy_port

the server/port that will act as proxy (default NULL = no proxy)

Details

This is part of the htmlunit DSL interface.s

Value

webclient object

Examples

w <- web_client()
wc_browser_info(w)

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