Skip to content

Commit 0f60b92

Browse files
committed
Fix by html attributes tests
1 parent 8c752b4 commit 0f60b92

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

selenium-webdriver-junit4/src/test/java/io/github/bonigarcia/webdriver/junit4/ch03/locators/ByHtmlAttributesJUnit4Test.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ public void testByHtmlAttributes() {
5454

5555
// By id
5656
WebElement textById = driver.findElement(By.id("my-text-id"));
57-
assertThat(textById.getDomProperty("type")).isEqualTo("text");
5857
assertThat(textById.getDomAttribute("type")).isEqualTo("text");
5958
assertThat(textById.getDomProperty("type")).isEqualTo("text");
6059

61-
assertThat(textById.getDomProperty("myprop")).isEqualTo("myvalue");
6260
assertThat(textById.getDomAttribute("myprop")).isEqualTo("myvalue");
6361
assertThat(textById.getDomProperty("myprop")).isNull();
6462

selenium-webdriver-junit5-seljup/src/test/java/io/github/bonigarcia/webdriver/seljup/ch03/locators/ByHtmlAttributesSelJupTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ void testByHtmlAttributes(ChromeDriver driver) {
4242

4343
// By id
4444
WebElement textById = driver.findElement(By.id("my-text-id"));
45-
assertThat(textById.getDomProperty("type")).isEqualTo("text");
4645
assertThat(textById.getDomAttribute("type")).isEqualTo("text");
4746
assertThat(textById.getDomProperty("type")).isEqualTo("text");
4847

49-
assertThat(textById.getDomProperty("myprop")).isEqualTo("myvalue");
5048
assertThat(textById.getDomAttribute("myprop")).isEqualTo("myvalue");
5149
assertThat(textById.getDomProperty("myprop")).isNull();
5250

selenium-webdriver-junit5/src/test/java/io/github/bonigarcia/webdriver/jupiter/ch03/locators/ByHtmlAttributesJupiterTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ void testByHtmlAttributes() {
5454

5555
// By id
5656
WebElement textById = driver.findElement(By.id("my-text-id"));
57-
assertThat(textById.getDomProperty("type")).isEqualTo("text");
5857
assertThat(textById.getDomAttribute("type")).isEqualTo("text");
5958
assertThat(textById.getDomProperty("type")).isEqualTo("text");
6059

61-
assertThat(textById.getDomProperty("myprop")).isEqualTo("myvalue");
6260
assertThat(textById.getDomAttribute("myprop")).isEqualTo("myvalue");
6361
assertThat(textById.getDomProperty("myprop")).isNull();
6462

selenium-webdriver-testng/src/test/java/io/github/bonigarcia/webdriver/testng/ch03/locators/ByHtmlAttributesNGTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ public void testByHtmlAttributes() {
5454

5555
// By id
5656
WebElement textById = driver.findElement(By.id("my-text-id"));
57-
assertThat(textById.getDomProperty("type")).isEqualTo("text");
5857
assertThat(textById.getDomAttribute("type")).isEqualTo("text");
5958
assertThat(textById.getDomProperty("type")).isEqualTo("text");
6059

61-
assertThat(textById.getDomProperty("myprop")).isEqualTo("myvalue");
6260
assertThat(textById.getDomAttribute("myprop")).isEqualTo("myvalue");
6361
assertThat(textById.getDomProperty("myprop")).isNull();
6462

0 commit comments

Comments
 (0)