Check browser localization with selenium webdriver

I am trying to test our site with different host language headers. Therefore, if the header accept-language is fr, it shows "bonjour", and if the header accept-language is "en", it shows "hello."

I do this with selenium webdriver, however, after several hours of web searching, I see no way to do this.

I stumbled upon this post, which suggests that this is not possible ( http://code.google.com/p/selenium/issues/detail?id=141 ), but certainly this is what someone else needs? Anyone any idea?

thanks!

+6
source share
1 answer
0
source

Source: https://habr.com/ru/post/886155/


All Articles