Since I cannot set a proxy from Geckodriver directly, I will change it manually by using
from selenium import webdriver
myProxy = "xxxxxxxxx:yyyy"
ip, port = myProxy.split(":")
profile = webdriver.FirefoxProfile()
profile.set_preference('network.proxy_type',5)
profile.set_preference('network.proxy.http','xxxxxxxxx')
profile.set_preference('network.proxy.http_port',yyyy)
profile.update_preferences()
driver=webdriver.Firefox(firefox_profile=profile)
driver.get('http://www.google.co.th')
time.sleep(3)
driver.close()
I am trying to execute, the firefox has changes into proxy mode
However, when I execute script via Robot Framework, which it also execute via Geckodriver, it doesn't change into proxy.
I need to know the way to permanently change proxy in Geckodriver
