如何设置PhantomJS的浏览器语言 [英] How to set the browser language of PhantomJS

查看:1425
本文介绍了如何设置PhantomJS的浏览器语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用DalekJS与PhantomJS测试Web应用程序。我有依赖于浏览器语言的重要断言。而这些失败,如果语言不是英语。

I'm using DalekJS with PhantomJS to test a web application. I have important assertions which depend on the browser language. And these fail if the language is not English.

任何想法我怎么可以设置pantomjs ??默认浏览器语言

Any Ideas how I can set the default browser language of pantomjs??

干杯izocan。

推荐答案

这个问题已经进一步这里讨论:的 https://groups.google.com/forum/#​​!topic/dalekjs/HHt6eoZRQc4

This question has been further discussed here: https://groups.google.com/forum/#!topic/dalekjs/HHt6eoZRQc4

这篇关于如何设置PhantomJS的浏览器语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆