[HtmlUnit] SVN: [15366] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ html/HtmlSearchInputTest.java
rbri--- via HtmlUnit-develop <[email protected]>
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 15366
http://sourceforge.net/p/htmlunit/code/15366
Author: rbri
Date: 2018-06-20 06:56:40 +0000 (Wed, 20 Jun 2018)
Log Message:
-----------
ff60 support (wip)
Modified Paths:
--------------
trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSearchInputTest.java
Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSearchInputTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSearchInputTest.java 2018-06-20 06:52:37 UTC (rev 15365)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSearchInputTest.java 2018-06-20 06:56:40 UTC (rev 15366)
@@ -17,6 +17,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.By;
+import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@@ -42,13 +43,13 @@
final WebElement input = webDriver.findElement(By.id("t"));
input.sendKeys("abc");
assertEquals("abc", input.getAttribute("value"));
- input.sendKeys("\b");
+ input.sendKeys(Keys.BACK_SPACE);
assertEquals("ab", input.getAttribute("value"));
- input.sendKeys("\b");
+ input.sendKeys(Keys.BACK_SPACE);
assertEquals("a", input.getAttribute("value"));
- input.sendKeys("\b");
+ input.sendKeys(Keys.BACK_SPACE);
assertEquals("", input.getAttribute("value"));
- input.sendKeys("\b");
+ input.sendKeys(Keys.BACK_SPACE);
assertEquals("", input.getAttribute("value"));
}
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot