String firstText = "This is";
String secondText = " default value";
tf2.sendKeys(firstText);
tf1.sendKeys(initialText);
new Actions(getDriver()).moveToElement(tf2).click().build().perform();
WebElement activeElement = getFocusedElement();
Assert.assertEquals("input", activeElement.getTagName());
Assert.assertEquals(firstText, activeElement.getAttribute("value"));
new Actions(getDriver()).sendKeys(secondText).build().perform();
DesiredCapabilities capabilities = getDesiredCapabilities();
if (capabilities.equals(BrowserUtil.ie(8))
|| capabilities.equals(BrowserUtil.ie(9))) {
// IE8 and IE9 insert cursor in the start of input instead of end.
Assert.assertEquals(secondText + firstText,