@Ignore(SELENESE) public void testShouldBeAbleToEnterDatesAfterFillingInOtherValuesFirst() { driver.get(formPage); WebElement input = driver.findElement(By.id("working")); String expectedValue = "10/03/2007 to 30/07/1993"; input.sendKeys(expectedValue); String seenValue = input.getValue(); assertThat(seenValue, equalTo(expectedValue)); }
@Ignore( value = {SELENESE, IPHONE}, reason = "iPhone: sendKeys is broken") public void testShouldBeAbleToSetMoreThanOneLineOfTextInATextArea() { driver.get(formPage); WebElement textarea = driver.findElement(By.id("withText")); textarea.clear(); String expectedText = "I like cheese" + newLine + newLine + "It's really nice"; textarea.sendKeys(expectedText); String seenText = textarea.getValue(); assertThat(seenText, equalTo(expectedText)); }