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

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

webclient(
  emulate = c("best", "chrome", "firefox", "ie"),
  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)

Value

webclient object

Details

This is part of the htmlunit DSL interface.s

Examples

w <- web_client()
wc_browser_info(w)