Initialises a new Client object
Parameters: | url – This is where the BrowserMob Proxy lives |
---|
Adds an ‘proxy’ entry to a desired capabilities dictionary with the BrowserMob proxy information
Parameters: | capabilities – The Desired capabilities object from Selenium WebDriver |
---|
This add automatic basic authentication
Parameters: |
|
---|
Sets a list of URL patterns to blacklist
Parameters: |
|
---|
Clears the DNS cache associated with the proxy instance
shuts down the proxy and closes the port
Gets the HAR that has been recorded
This sets the headers that will set by the proxy on all requests
Parameters: | headers – this is a dictionary of the headers to be set |
---|
Limit the bandwidth through the proxy.
Parameters: | options – A dictionary with all the details you want to set. downstreamKbps - Sets the downstream kbps upstreamKbps - Sets the upstream kbps latency - Add the given latency to each HTTP request |
---|
This sets a new HAR to be recorded
Parameters: |
|
---|
This sets a new page to be recorded
Parameters: | ref – A reference for the new page. Defaults to None |
---|
Remap the hosts for a specific URL
Parameters: |
|
---|
Executes the javascript against each request
Parameters: | js – the javascript to execute |
---|
Executes the javascript against each response
Parameters: | js – the javascript to execute |
---|
Retries. No idea what its used for, but its in the API...
Parameters: | retry_count – the number of retries |
---|
Rewrites the requested url.
Parameters: |
|
---|
Returns a Selenium WebDriver Proxy class with details of the HTTP Proxy
Configure various timeouts in the proxy
Parameters: | options – A dictionary with all the details you want to set. request - request timeout (in seconds) read - read timeout (in seconds) connection - connection timeout (in seconds) dns - dns lookup timeout (in seconds) |
---|
Waits for the network to be quiet
Parameters: |
|
---|
Returns a Selenium WebDriver Proxy class with details of the HTTP Proxy
Sets a list of URL patterns to whitelist
Parameters: |
|
---|