sel_proxy: Set Selenium proxy configuration

Description Usage Arguments Value Examples

Description

Sets the proxy configuration for use with Selenium

Usage

1
2
sel_proxy(proxy, eCaps = NULL, browser = c("firefox", "chrome"),
  bmpIPaddress = NULL)

Arguments

proxy

An object of class "proxy". A proxy object see proxy.

eCaps

A list of existing extra capabilities.

browser

The browser type to set the config for. Can use firefox or chrome. The default is firefox. If left NULL firefox default is used.

bmpIPaddress

Stipulate an alternative BMP ip address. The Selenium server may for example be running in a docker container as may the BMP server. Defaults to NULL and the ip address implied by proxy is used

Value

Returns an extra capabilities list that can be passed to Selenium

Examples

1
2
3
4
5
## Not run: 
  prxy <- proxy(bmpPort = 9090L, port = 39500L)
  eCap <- sel_proxy(prxy, browser = "chrome")

## End(Not run)

johndharrison/bmproxy documentation built on May 19, 2019, 5:13 p.m.