Skip to content

Commit

Permalink
ignoring some tests for HTMLUNIT, it does not handle element attribut…
Browse files Browse the repository at this point in the history
…es well.

correct typo
  • Loading branch information
lukeis committed Nov 25, 2013
1 parent 8f6bd66 commit 2e10f92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/web/userDefinedProperty.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<body>
<div id="d"></div>
<script>
document.getElementById("d").dynamicProperty = 'sompleValue';
document.getElementById("d").dynamicProperty = 'sampleValue';
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.openqa.selenium.testing.Ignore.Driver.ANDROID;
import static org.openqa.selenium.testing.Ignore.Driver.HTMLUNIT;
import static org.openqa.selenium.testing.Ignore.Driver.IE;
import static org.openqa.selenium.testing.Ignore.Driver.IPHONE;
import static org.openqa.selenium.testing.Ignore.Driver.MARIONETTE;
Expand Down Expand Up @@ -397,10 +398,11 @@ public void testMultipleAttributeShouldBeTrueWhenSelectHasMultipleWithValueAsSom
assertEquals("true", element.getAttribute("multiple"));
}

@Ignore({HTMLUNIT})
@Test
public void testGetAttributeOfUserDefinedProperty() {
driver.get(pages.userDefinedProperty);
WebElement element = driver.findElement(By.id("d"));
assertEquals("sompleValue", element.getAttribute("dynamicProperty"));
assertEquals("sampleValue", element.getAttribute("dynamicProperty"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void testBasicKeyboardInputOnActiveElement() {
assertThat(keyReporter.getAttribute("value"), is("abc def"));
}

@Ignore(value = {ANDROID, IPHONE, IE, OPERA, SAFARI}, reason = "untested")
@Ignore(value = {ANDROID, IPHONE, IE, OPERA, SAFARI, HTMLUNIT}, reason = "untested")
@JavascriptEnabled
@Test
public void canGenerateKeyboardShortcuts() {
Expand Down

0 comments on commit 2e10f92

Please sign in to comment.