Revision: 544
Author: henryju
Date: 2006-08-01 02:56:58 -0700 (Tue, 01 Aug 2006)
ViewCVS: http://svn.sourceforge.net/jwebunit/?rev=544&view=rev
Log Message:
-----------
Add methods in SeleniumDialog to silent compilation errors.
Modified Paths:
--------------
trunk/jwebunit-selenium-plugin/pom.xml
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumDialog.java
trunk/pom.xml
Modified: trunk/jwebunit-selenium-plugin/pom.xml
===================================================================
--- trunk/jwebunit-selenium-plugin/pom.xml 2006-07-28 21:28:37 UTC (rev
543)
+++ trunk/jwebunit-selenium-plugin/pom.xml 2006-08-01 09:56:58 UTC (rev
544)
@@ -1,64 +1,64 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <parent>
- <artifactId>jwebunit</artifactId>
- <groupId>net.sourceforge.jwebunit</groupId>
- <version>2.0-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jwebunit-selenium-plugin</artifactId>
- <name>Selenium plugin</name>
- <description>Selenium plugin for jWebUnit.</description>
- <repositories>
- <repository>
- <releases />
- <snapshots />
- <id>selenium</id>
- <name>Selenium repository</name>
- <url>http://maven.openqa.org/</url>
- </repository>
- </repositories>
- <properties>
- <topDirectoryLocation>..</topDirectoryLocation>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.openqa.selenium.client-drivers</groupId>
- <artifactId>selenium-java-client-driver</artifactId>
- <version>0.8.2-SNAPSHOT</version>
- </dependency>
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>jwebunit</artifactId>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jwebunit-selenium-plugin</artifactId>
+ <name>Selenium plugin</name>
+ <description>Selenium plugin for jWebUnit.</description>
+ <repositories>
+ <repository>
+ <releases />
+ <snapshots />
+ <id>selenium</id>
+ <name>Selenium repository</name>
+ <url>http://maven.openqa.org/</url>
+ </repository>
+ </repositories>
+ <properties>
+ <topDirectoryLocation>..</topDirectoryLocation>
+ </properties>
+ <dependencies>
<dependency>
+ <groupId>org.openqa.selenium.client-drivers</groupId>
+ <artifactId>selenium-java-client-driver</artifactId>
+ <version>0.8.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>0.8.2-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-core</artifactId>
- <version>2.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jwebunit</groupId>
- <artifactId>jwebunit-commons-tests</artifactId>
- <version>2.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <includes>
- <include>**/*Test.java</include>
- </includes>
- <testFailureIgnore>true</testFailureIgnore>
- <skip>false</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-core</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jwebunit</groupId>
+ <artifactId>jwebunit-commons-tests</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <testFailureIgnore>true</testFailureIgnore>
+ <skip>true</skip><!-- You need to launch Selenium Server
before running tests-->
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Modified:
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumDialog.java
===================================================================
---
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumDialog.java
2006-07-28 21:28:37 UTC (rev 543)
+++
trunk/jwebunit-selenium-plugin/src/main/java/net/sourceforge/jwebunit/selenium/SeleniumDialog.java
2006-08-01 09:56:58 UTC (rev 544)
@@ -393,9 +393,9 @@
selenium.type("xpath=" + formSelector() + "//[EMAIL
PROTECTED]'"+inputName+"' and (@type=text or @type=password)]", text);
}
- public void setWorkingForm(String nameOrId) {
+ public void setWorkingForm(String nameOrId, int index) {
if (nameOrId != null)
- formIdent="@name='"+nameOrId+"' or @id='"+nameOrId+"'";
+ formIdent="(@name='"+nameOrId+"' or @id='"+nameOrId+"') and
position()="+index;
else
formIdent=null;
}
@@ -458,4 +458,14 @@
public void gotoWindow(int windowID) {
selenium.selectWindow(""+windowID);
}
+
+ public String getTextFieldValue(String paramName) {
+ //TODO implement getTextFieldValue in SeleniumDialog
+ throw new UnsupportedOperationException("getTextFieldValue");
+ }
+
+ public String getHiddenFieldValue(String paramName) {
+ //TODO implement getHiddenFieldValue in SeleniumDialog
+ throw new UnsupportedOperationException("getHiddenFieldValue");
+ }
}
\ No newline at end of file
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2006-07-28 21:28:37 UTC (rev 543)
+++ trunk/pom.xml 2006-08-01 09:56:58 UTC (rev 544)
@@ -320,7 +320,7 @@
<id>jwebunit-website</id>
<name>jWebUnit WebSite - Sourceforge</name>
<url>
- scp://shell.sourceforge.net/home/groups/j/jw/jwebunit/htdocs
+
scp://shell.sourceforge.net/home/groups/j/jw/jwebunit/htdocs/2.x
<!--file:///home/julien/site-jwebunit-->
</url>
</site>
@@ -333,5 +333,14 @@
jWebUnit Maven 2 Repository
</name>
</repository>
+ <snapshotRepository>
+ <id>jwebunit-m2-repo-snapshots</id>
+ <url>
+
scpexe://shell.sourceforge.net/home/groups/j/jw/jwebunit/htdocs/m2-repo-snapshots
+ </url>
+ <name>
+ jWebUnit Maven 2 Snapshots Repository
+ </name>
+ </snapshotRepository>
</distributionManagement>
</project>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development