根据this的说法,现在可以修改报头。我需要修改PhantomJS网络驱动程序中的接受语言。此代码不起作用
DesiredCapabilities.PHANTOMJS['phantomjs.page.customHeaders.Accept-Language'] = 'ru-RU'
driver = webdriver.PhantomJS()
有没有可能以某种方式配置Phantomjs来发送我的报头?我不关心在哪里: ghostdriver,phantomjs还是phantomjs-webdriver。
https://stackoverflow.com/questions/17858663
复制相似问题