有没有什么方法可以像phantomJS中的"network.negotiate-auth.trusted-uris"
那样使用浏览器首选项。在
下面是selenium with firefox的语法:
p_profile = webdriver.FirefoxProfile()
p_profile.set_preference("network.negotiate-auth.trusted-uris", "https://xx.com")
driver = webdriver.Firefox(p_profile)
driver.get("https://xx.com")
PhantomJS中是否有类似的功能。在
您可以在创建
PhantomJS
对象时传递desired_capabilities
关键字参数。在例如,要更改用户代理标头:
检查^{} - PhantomJS 以获取其他可用设置。在
相关问题 更多 >
编程相关推荐