"""Simple python script using Percy to load an UI page.""" from percy import percy_snapshot from selenium import webdriver # configure proxy settings profile = webdriver.FirefoxProfile() profile.set_preference("network.proxy.type", 1) profile.set_preference("network.proxy.socks", ) profile.set_preference("network.proxy.socks_port", int()) profile.set_preference("security.enterprise_roots.enabled", True) profile.set_preference("network.proxy.socks_version", 5) profile.set_preference("network.proxy.no_proxies_on", 'http://localhost:5338') profile.set_preference("network.proxy.socks_remote_dns", True) profile.update_preferences() opts = webdriver.FirefoxOptions() opts.profile = profile browser = webdriver.Firefox(options=opts) browser.get("http://192.168.178.1") percy_snapshot(browser, "Login Page") browser.quit()