Skip to content

Add config for running Pucauto behind a proxy #68

@tomreece

Description

@tomreece

A user named Geoff needed to run Pucauto behind a proxy, figured out how to do it on his own, and sent me the following code snippet of his solution. Make this a configurable option.

from selenium.webdriver.common.proxy import *
...
PROXY = "<server>:<port>"

myProxy = Proxy({
    "httpProxy":PROXY,
    "ftpProxy":PROXY,
    "sslProxy":PROXY,
    "proxyType":ProxyType.MANUAL,
    "class":"org.selenium.Proxy",
    "autodetect":False
})

DRIVER = webdriver.Firefox(proxy=myProxy)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions