TestProject Forum

Proxy setting with Firefox

How can we set / import proxy setting with firefox browser when running testcases with TestProject SDK ??

proxy_use= "xx.xxx.xx.xx"
desired_capability = webdriver.DesiredCapabilities.FIREFOX
desired_capability['proxy'] = {
    'proxyType': "manual",
    'httpProxy': proxy_use,
    'ftpProxy': proxy_use,
    'sslProxy': proxy_use,

While I use the above, I am getting error

AttributeError: module ‘src.testproject.sdk.drivers.webdriver’ has no attribute 'DesiredCapabilities’

This is not the module for DesiredCapabilities it’s selenium.webdriver.common.desired_capabilities.DesiredCapabilities