Selenium Maven插件-Selenese目标缺少firefox配置文件参数
是的,我使用Selenium Maven插件遇到了麻烦——使用Selenium Maven的目标非常棒——但是当涉及到在firefox中执行测试时,该插件会启动一个新的firefox配置文件,其中没有配置公司代理 现在,如果我只是直接用selenium服务器jar执行我的html套件,我可以指定一个firefox配置文件——但是,似乎在这种情况下,这个插件的selenese目标中没有将它作为参数包含在其中。疯狂 启动服务器目标有这样的参数,为什么不使用selenese呢 还有其他人面临过这个问题吗?有解决办法吗 感谢所有明智的意见Selenium Maven插件-Selenese目标缺少firefox配置文件参数,maven,selenium,Maven,Selenium,是的,我使用Selenium Maven插件遇到了麻烦——使用Selenium Maven的目标非常棒——但是当涉及到在firefox中执行测试时,该插件会启动一个新的firefox配置文件,其中没有配置公司代理 现在,如果我只是直接用selenium服务器jar执行我的html套件,我可以指定一个firefox配置文件——但是,似乎在这种情况下,这个插件的selenese目标中没有将它作为参数包含在其中。疯狂 启动服务器目标有这样的参数,为什么不使用selenese呢 还有其他人面临过这个问题
谢谢,我想如果有其他人遇到这个问题,我会发布我的解决方案 只需获取selenium maven插件源代码,并对其进行修补。这些常量在selenium server RemoteControlConfiguration类中可用,但是该插件没有在SeleneseMojo中全部使用它们。因此,这是一个非常简单的解决方案: 设置seleneseMojo启动selenium服务器时要更改的属性。因此,在本例中,我想使用
firefoxProfileTemplate
,因此我做了以下操作:
def conf = new RemoteControlConfiguration()
conf.port = port
conf.singleWindow = !multiWindow
conf.firefoxProfileTemplate = firefoxProfileTemplate
def server = new SeleniumServer(slowResources, conf)
server.start()
现在,我可以在我的maven项目执行配置中指定firefoxProfileTemplate值,从而在通过maven运行selenium html套件时指定firefox配置文件。我想如果其他人遇到此问题,我会发布我的解决方案 只需获取selenium maven插件源代码,并对其进行修补。这些常量在selenium server RemoteControlConfiguration类中可用,但是该插件没有在SeleneseMojo中全部使用它们。因此,这是一个非常简单的解决方案: 设置seleneseMojo启动selenium服务器时要更改的属性。因此,在本例中,我想使用
firefoxProfileTemplate
,因此我做了以下操作:
def conf = new RemoteControlConfiguration()
conf.port = port
conf.singleWindow = !multiWindow
conf.firefoxProfileTemplate = firefoxProfileTemplate
def server = new SeleniumServer(slowResources, conf)
server.start()
现在,我可以在maven项目执行配置中指定firefoxProfileTemplate值,从而在通过maven运行selenium html套件时指定firefox配置文件