Re: [comment] Allowing the modifications of HTTP Request headers

David,

Le 8 nov. 2012 à 10:41, David Burns a écrit :
> The WebDriver spec deals with making the browser automateable and trying to emulate the user.

Agreed.

> Changing headers does not fit in with those goals.

Even when the user has the ability to change them?

For example if I change the main language of my browser in preferences. The headers will not be the same anymore. That might be done maybe by a choice of profile before making requests, but that weaken the interoperability story for testing. Reusing the same tests for every browsers.


> Changing headers can easily be done via adding a proxy in the middle between the browser and the web pages under test and this is how people using the OSS WebDriver currently do that.

Agreed though making it less accessible for people who want to test. It's an additional piece in the puzzle. 
I haven't tested also for setRequestHeader in XHR.


Thanks for the answer, David.


-- 
Karl Dubost - http://dev.opera.com/
Developer Relations, Opera Software

Received on Thursday, 8 November 2012 16:08:51 UTC