English 中文(简体)
Seleense 目标缺少火福克斯配置参数
原标题:Selenium Maven Plugin - Selenese goal missing firefox profile parameter

我用Selenium Maven插件撞到了一堵墙—— 使用超大目标—— 然而,在进行火狐试验时, 插件开启了一个新鲜的火狐配置, 它没有配置公司的代理配置 。

现在,如果我只是直接用服务器罐直接执行我的 html 套件, 我可以指定一个火狐剖面图, 但看来这个插件的单词目标中并没有包含这个参数。 疯狂!!

启动服务器目标有这样的参数, 为什么不是单词呢?

还有其他人面临这个问题吗?

感谢所有明智的投入。

谢谢

问题回答

我想我会公布我的解决方案 如果有其他人来过这里...

只需获取 maven 插件源, 并修补它。 恒定值可以在 服务器远程控制配置类中找到, 但是这个插件在 Selenese Mojo 中没有全部使用 。 因此它是一个非常简单的修正 :

设置当 selenese Mojo 启动 服务器时我们要更改的属性。 因此, 在此情况下, 我想使用 < code> FirefoxProfileTemplate , 所以我这样做 :

 def conf = new RemoteControlConfiguration()
 conf.port = port
 conf.singleWindow = !multiWindow
 conf.firefoxProfileTemplate = firefoxProfileTemplate

 def server = new SeleniumServer(slowResources, conf)
 server.start()

现在,我可以在我的 Maven 工程执行配置中指定一个 FirefoxProfileTemplate 值, 并因此指定一个 firefox 配置文件, 当通过 Maven 运行 etrium html 套房时 。





相关问题
Javascript communication with Selenium (RC)

My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to ...

Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

Using a Java library with Scala reserved words

I m using an external library written in Java (Selenium). One of the function calls has the signature type(String, String), and I keep getting compiler errors when trying to call it from Scala, that ...

Heightened privilege selenium browsers on Windows 7 (x64)

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I ve moved from XP over to 7, ...

Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Selenium IDE: Incrementing values by 1 and 71

Currently I m incrementing a value called wert by 1 with the following code: getEval storedVars[ wert ]=${wert}+1; The value wert is something like 80401299. I want to add 1 to the value, if it ...

热门标签