【发布时间】:2020-01-18 09:03:03
【问题描述】:
我想不使用代理启动我的 Firefox。
目前正在使用系统代理设置。
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].FirefoxProfile() sys, selenium.webdriver
Call Method ${chrome_options} set_preference network.proxy.type 0
${options} Call Method ${chrome_options} set_preference {"network.proxy.type", 0}
Open Browser http://cnn.com browser ff desired_capabilities=${options}
有人可以帮我吗
【问题讨论】:
-
如果您使用 SeleniumLibrary,那么您可以根据需要传递代理设置。见robotframework.org/SeleniumLibrary/… 和github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities
标签: python selenium selenium-webdriver automation robotframework