开发者

Test browser locale using selenium webdriver

开发者 https://www.devze.com 2023-02-26 05:06 出处:网络
I\'m trying to test our website with different accept-language headers.So if accept-language header is fr it shows \"bonjour\" and if the accept-language header is \"en\" it shows \"hello\". 开发者_高

I'm trying to test our website with different accept-language headers. So if accept-language header is fr it shows "bonjour" and if the accept-language header is "en" it shows "hello". 开发者_高级运维

I'm doing this with selenium webdriver, however after a couple of hours of web searching I can't see a way to do it.

I came across this post which suggests that it's not possible (http://code.google.com/p/selenium/issues/detail?id=141) but surely this is something that someone else has needed to do? Any idea anyone?

thanks!


have a look at http://blog.dynatrace.com/2009/08/04/get-more-out-of-functional-web-testing-how-to-correlate-test-reports-with-server-side-log-information/ it describes using fiddler as a proxy for changing request headers.

0

精彩评论

暂无评论...
验证码 换一张
取 消