How can I use wonderproxy in my Python scripts?

Can I use wonderproxy in my python scripts?

Hi Helen.

You can set the proxy server in your python script with the help of Google Chrome option arguments and place the wonderproxy host and port values such as:

from selenium import webdriver

PROXY = “11.456.448.110:8080”

chrome_options = WebDriver.ChromeOptions()

chrome_options.add_argument(‘–proxy-server=%s’ % PROXY)

chrome = webdriver.Chrome(chrome_options=chrome_options)

chrome.get(“https://www.google.com”)

For more details, you can refer to the following link: A Guide to Localization Testing with Proxy Servers in Selenium - WonderProxy Blog