【发布时间】:2016-02-17 23:29:48
【问题描述】:
我正在尝试将浏览器区域设置为日语。我正在使用以下代码:
FirefoxProfile profile = new FirefoxProfile();
//setting the locale japanese : ‘ja’
profile.setPreference(“intl.accept_languages”,”ja”);
driver = new FirefoxDriver(profile);
“intl”在 Eclipse 编辑器中无法识别。它说“intl”无法解析为局部变量。 Eclipse 也不建议任何导入。它要求我创建一个局部变量“intl”。
我不知道有什么其他方法可以解决这个问题。有什么建议吗?
【问题讨论】:
标签: java eclipse selenium webdriver