PHPUnit-Selenium FirefoxProfile设置

时间:2015-08-18 05:51:50

标签: linux firefox selenium automation phpunit

我收到了一个错误的请求"在Firefox中使用Selenium WebDriver开始测试运行时的异常。我将此问题追溯到主机配置文件(使用Linux)。我机器上的主机文件有这一行

  

127.0.0.1 localhost

当我更新主机文件时,这可以正常工作

  

127.0.0.1 localhost something

但我无法更改此文件。我发现了一个与此相关的问题,

  

https://code.google.com/p/selenium/issues/detail?id=3280

人们建议将此作为解决方案

  

profile.setPreference(FirefoxProfile.ALLOWED_HOSTS_PREFERENCE,   "东西&#34);

但我使用的是phpunit-selenium框架,并且不确定在哪里放置这一行。任何人请建议我在phpunit-selenium框架中的解决方案

0 个答案:

没有答案