标题和Selenium Webdriver 2 [英] Headers and Selenium Webdriver 2
问题描述
http://code.google.com/p/selenium / issues / detail?id = 141
我们使用Apache HTTP Client进行这种类型的测试,我们不想检查呈现的页面元素,但只是响应和标题信息。
您也可以使用您的硒测试以及上面的url中提到的浏览器暴徒代理。我已经将其用于其他目的,并且非常棒。
Is there any way to add a header in Selenium WebDriver test? (Like with Firefox Modify Headers plugin) I cannot use HtmlUnitDriver, because the browser has to be visible.
WebDriver does not allow you to change or set the headers using any of the browser based drivers. You can find a lot of information about their decision about the headers and the response codes at the following URL. http://code.google.com/p/selenium/issues/detail?id=141
We use Apache HTTP Client for this type of testing where we do not want to check the rendered page elements, but just the responses and header information.
You can also give browser mob proxy with your selenium tests as well as mentioned in the url above. I have used this for other purposes and it is awesome.
这篇关于标题和Selenium Webdriver 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!