I have a series of HTML tests that I am able to run using the selenese goal, selenium-maven-plugin (version 1.1). I was able to run this for IE. However, this doesn’t work with Firefox 4. I keep getting a blank firefox window opening up and the server will just hang there. I believe that I’ve narrowed the problem down to the fact that the Selenium-maven-plugin uses the old Selenium 1.0 Core, which doesn’t function properly with Firefox 4.
I was wondering if there was some way, using Maven and Selenium 2.0, to run these HTML tests. The following is a snippet of my POM file.
...
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<browser>*iexploreproxy</browser>
<suite>src/test/selenium/html/suite.html</suite>
<startURL>http://localhost:5555/</startURL>
<port>5555</port>
</configuration>
<executions>
<execution>
<id>Run-Selenese-Scripts</id>
<phase>integration-test</phase>
<goals>
<goal>selenese</goal>
</goals>
<configuration>
<port>5555</port>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...
If there is any other way to run the HTML suites (besides the Selenium IDE) that I may have missed, please share.
Thanks,
Juan
I had this exact problem yesterday on OSX. Trying to use firefox 4 – a blank firefox window opens up and selenium-server doesn’t detect it. The only version which fixes this problem (on OSX anyway) is 2.0b3.
I’ve got a fork of current trunk of upgraded to 2.0b3 on github: https://github.com/thelmstedt/selenium-maven-plugin. YMMV
There is actually a way to override the selenium version in selenium-maven-plugin plugin declaration: see this jira issue for someone troubleshooting it.
But the selenium folks have changed their maven packaging recently, and I was unable to use this to override to the latest 2.0b3 dependency. Compare the uploaded version 2.0b1 with 2.0b3. The correct way to declare a dependency on selenium is now with
<type>pom</type>. I will be happy if it turns out I’m wrong on this.