Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 89dd5f9

Browse files
committed
Update to HtmlUnit 1.14 (unit test fix needed)
1 parent 51c08f2 commit 89dd5f9

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public void testSetFileField() {
7777
setTextField("file", filename);
7878
submit("button");
7979
assertTextPresent("Submitted parameters");
80-
assertTextPresent("file=" + temp.getName() + "{abcdefgh}");
80+
//The following depend on the browser: IE send full path but FF send only file name.
81+
assertTextPresent("file=" + temp.getAbsolutePath() + "{abcdefgh}");
8182
}
8283

8384
public void testSubmitImageInput() {

jwebunit-htmlunit-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<scope>test</scope>
3535
</dependency>
3636
<dependency>
37-
<groupId>htmlunit</groupId>
37+
<groupId>net.sourceforge.htmlunit</groupId>
3838
<artifactId>htmlunit</artifactId>
3939
</dependency>
4040
<dependency>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@
292292
<version>1.3.1</version>
293293
</dependency>
294294
<dependency>
295-
<groupId>htmlunit</groupId>
295+
<groupId>net.sourceforge.htmlunit</groupId>
296296
<artifactId>htmlunit</artifactId>
297-
<version>1.13</version>
297+
<version>1.14</version>
298298
</dependency>
299299
<dependency>
300300
<groupId>org.openqa.selenium.client-drivers</groupId>

src/changes/changes.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
</properties>
99
<body>
1010
<release version="1.5" date="UNKNOW">
11+
<action type="update" dev="henryju">
12+
Update to HtmlUnit 1.14.
13+
</action>
1114
<action type="add" dev="henryju" issue="1874212" due-to="Mike C">
1215
Support multiple selects with same name.
1316
</action>
1417
<action type="fix" dev="henryju" issue="1845893" due-to="Mike">
1518
assertButtonPresentWithText and clickButtonWithText now work for input button
1619
(submit, reset, button) matching the value attribute.
1720
</action>
18-
<action type="update" dev="henryju">
19-
Update to HtmlUnit 1.13.
20-
</action>
2121
<action type="add" dev="henryju">
2222
Add basic Selenium support.
2323
</action>

0 commit comments

Comments
 (0)