diff --git a/pom.xml b/pom.xml index fb28664b..cf425e20 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.seleniumhq.selenium htmlunit-driver - 3.61.0 + 3.62.0-SNAPSHOT htmlunit-driver WebDriver compatible driver for HtmlUnit headless browser @@ -14,7 +14,7 @@ UTF-8 4.1.3 - 2.61.0 + 2.62.0-SNAPSHOT 9.4.46.v20220331 diff --git a/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitKeyboard.java b/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitKeyboard.java index 7dc87d22..abb5f9fe 100644 --- a/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitKeyboard.java +++ b/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitKeyboard.java @@ -70,7 +70,7 @@ private void sendKeys(HtmlElement element, InputKeysContainer keysToSend, boolea // HtmlElement.type doesn't modify the value of a file input element. Special case. if (element instanceof HtmlFileInput) { HtmlFileInput fileInput = (HtmlFileInput) element; - fileInput.setValueAttribute(keysSequence); + fileInput.setValue(keysSequence); return; } diff --git a/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java b/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java index f5d3db43..3d0b0a59 100644 --- a/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java +++ b/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java @@ -226,7 +226,7 @@ public void clear() { if (htmlInput.isDisabled()) { throw new InvalidElementStateException("You may only interact with enabled elements"); } - htmlInput.setValueAttribute(""); + htmlInput.setValue(""); if (htmlInput instanceof SelectableTextInput) { ((SelectableTextInput) htmlInput).setSelectionEnd(0); }