I'm implementing a selenium - python code to scrape through a webpage. I was able to run the program using remote webdriver without any proxy wall. However I need to run this behind a proxy wall. I couldn't figure out whether to user Proxy class or to implement proxy using Desired Capabilities? Attaching the current code without any proxy settings PS. using a DOM object model
from driver import Webdriver
from selenium.webdriver.common.proxy import Proxy
import unittest,time
desired_capabilities = { 'browserName' : 'chrome' }
command_executor = "http://127.0.0.1:4444/wd/hub"
proxy_address = 'http://proxy-chain.companyname.com:911'
from base import Login_page
class testing_first_code(unittest.TestCase):
def setUp (self):
self.driver = Webdriver(desired_capabilities=desired_capabilities, command_executor=command_executor )