Skip to content

Commit fa7daf5

Browse files
committed
Upgrade to 4.28.0; add action pauses
1 parent af3f969 commit fa7daf5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
3333
<maven.compiler.source>11</maven.compiler.source>
3434
<maven.compiler.target>11</maven.compiler.target>
35-
<selenium.version>4.27.0</selenium.version>
36-
<htmlunit.version>4.27.0</htmlunit.version>
35+
<selenium.version>4.28.0</selenium.version>
36+
<htmlunit.version>4.28.0</htmlunit.version>
3737
<checkstyle.version>10.15.0</checkstyle.version>
3838
<spotbugs.version>4.8.4</spotbugs.version>
3939
<dependencycheck.version>9.1.0</dependencycheck.version>

src/test/java/org/openqa/selenium/htmlunit/remote/HtmlUnitDriverRemoteActionsTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
import static java.net.HttpURLConnection.HTTP_OK;
2121

22+
import java.time.Duration;
23+
2224
import org.junit.Test;
2325
import org.openqa.selenium.By;
2426
import org.openqa.selenium.htmlunit.HtmlUnitWebElement;
@@ -36,7 +38,9 @@ public void shouldBeAbleToProcessActions() throws Exception {
3638
HtmlUnitWebElement clickable = (HtmlUnitWebElement) getWebDriver().findElement(By.id("clickable"));
3739
Actions actions = new Actions(getWebDriver())
3840
.moveToElement(clickable)
41+
.pause(Duration.ofSeconds(1))
3942
.click()
43+
.pause(Duration.ofSeconds(1))
4044
.sendKeys("abc");
4145
CommandPayload payload = DriverCommand.ACTIONS(actions.getSequences());
4246
HttpRequest request = commandCodec.encode(new Command(sessionId(), payload));

0 commit comments

Comments
 (0)