diff --git a/build.gradle b/build.gradle
index 9152c1dfb6..24c57e4969 100644
--- a/build.gradle
+++ b/build.gradle
@@ -58,9 +58,9 @@ dependencies {
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.google.guava:guava:21.0'
runtime 'commons-codec:commons-codec:1.10'
- provided group: 'org.seleniumhq.selenium', name: 'htmlunit-driver', version: '2.24', transitive: false
- provided group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.24', transitive: false
- testRuntime group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.24', transitive: false
+ provided group: 'org.seleniumhq.selenium', name: 'htmlunit-driver', version: '2.27', transitive: false
+ provided group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.27', transitive: false
+ testRuntime group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.27', transitive: false
compile('net.lightbody.bmp:browsermob-core:2.1.5')
testRuntime group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25', transitive: false
diff --git a/src/test/java/integration/SelenideMethodsTest.java b/src/test/java/integration/SelenideMethodsTest.java
index eacc66b142..605c48e972 100644
--- a/src/test/java/integration/SelenideMethodsTest.java
+++ b/src/test/java/integration/SelenideMethodsTest.java
@@ -114,12 +114,7 @@ public void toStringShowsAllAttributesButStyleSortedAlphabetically() {
public void toStringShowsValueAttributeThatHasBeenUpdatedDynamically() {
$("#age").clear();
$("#age").sendKeys("21");
- if (isHtmlUnit()) {
- assertEquals("", $("#age").toString());
- }
- else {
- assertEquals("", $("#age").toString());
- }
+ assertEquals("", $("#age").toString());
}
@Test