Skip to content

Commit 96acefc

Browse files
committed
1 parent e383762 commit 96acefc

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

java/test/org/openqa/selenium/ClearTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919

2020
import static org.assertj.core.api.Assertions.assertThat;
2121
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
22+
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
2223
import static org.openqa.selenium.testing.drivers.Browser.IE;
2324

2425
import org.junit.jupiter.api.Test;
26+
import org.openqa.selenium.testing.Ignore;
2527
import org.openqa.selenium.testing.JupiterTestBase;
2628
import org.openqa.selenium.testing.NotYetImplemented;
2729

@@ -36,6 +38,7 @@ void testWritableTextInputShouldClear() {
3638
}
3739

3840
@Test
41+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
3942
void testTextInputShouldNotClearWhenDisabled() {
4043
driver.get(pages.readOnlyPage);
4144
WebElement element = driver.findElement(By.id("textInputNotEnabled"));
@@ -59,6 +62,7 @@ void testWritableTextAreaShouldClear() {
5962
}
6063

6164
@Test
65+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
6266
void testTextAreaShouldNotClearWhenDisabled() {
6367
driver.get(pages.readOnlyPage);
6468
WebElement element = driver.findElement(By.id("textAreaNotEnabled"));

java/test/org/openqa/selenium/ElementFindingTest.java

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ void testShouldNotBeAbleToLocateByIdMultipleElementsThatDoNotExist() {
9999
}
100100

101101
@Test
102+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
102103
void testFindingASingleElementByEmptyIdShouldThrow() {
103104
driver.get(pages.formPage);
104105
assertThatExceptionOfType(InvalidSelectorException.class)
105106
.isThrownBy(() -> driver.findElement(By.id("")));
106107
}
107108

108109
@Test
110+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
109111
public void testFindingMultipleElementsByEmptyIdShouldThrow() {
110112
driver.get(pages.formPage);
111113
assertThatExceptionOfType(InvalidSelectorException.class)
@@ -315,13 +317,15 @@ void testShouldNotFindElementByClassWhenTheNameQueriedIsShorterThanCandidateName
315317
}
316318

317319
@Test
320+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
318321
void testFindingASingleElementByEmptyClassNameShouldThrow() {
319322
driver.get(pages.xhtmlTestPage);
320323
assertThatExceptionOfType(InvalidSelectorException.class)
321324
.isThrownBy(() -> driver.findElement(By.className("")));
322325
}
323326

324327
@Test
328+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
325329
void testFindingMultipleElementsByEmptyClassNameShouldThrow() {
326330
driver.get(pages.xhtmlTestPage);
327331
assertThatExceptionOfType(InvalidSelectorException.class)
@@ -434,13 +438,15 @@ void testShouldThrowAnExceptionWhenThereIsNoLinkToClick() {
434438
}
435439

436440
@Test
441+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
437442
void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElement() {
438443
driver.get(pages.formPage);
439444
assertThatExceptionOfType(InvalidSelectorException.class)
440445
.isThrownBy(() -> driver.findElement(By.xpath("this][isnot][valid")));
441446
}
442447

443448
@Test
449+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
444450
void
445451
testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElements() {
446452
driver.get(pages.formPage);
@@ -449,6 +455,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri
449455
}
450456

451457
@Test
458+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
452459
void
453460
testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElement() {
454461
driver.get(pages.formPage);
@@ -458,6 +465,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri
458465
}
459466

460467
@Test
468+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
461469
void
462470
testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElements() {
463471
driver.get(pages.formPage);
@@ -467,20 +475,23 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri
467475
}
468476

469477
@Test
478+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
470479
void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElement() {
471480
driver.get(pages.formPage);
472481
assertThatExceptionOfType(InvalidSelectorException.class)
473482
.isThrownBy(() -> driver.findElement(By.xpath("count(//input)")));
474483
}
475484

476485
@Test
486+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
477487
void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElements() {
478488
driver.get(pages.formPage);
479489
assertThatExceptionOfType(InvalidSelectorException.class)
480490
.isThrownBy(() -> driver.findElements(By.xpath("count(//input)")));
481491
}
482492

483493
@Test
494+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
484495
void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElement() {
485496
driver.get(pages.formPage);
486497

@@ -490,6 +501,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFi
490501
}
491502

492503
@Test
504+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
493505
void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElements() {
494506
driver.get(pages.formPage);
495507
WebElement body = driver.findElement(By.tagName("body"));
@@ -569,27 +581,31 @@ void testShouldNotFindElementsByCssSelectorWhenThereIsNoSuchElement() {
569581
}
570582

571583
@Test
584+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
572585
void testFindingASingleElementByEmptyCssSelectorShouldThrow() {
573586
driver.get(pages.xhtmlTestPage);
574587
assertThatExceptionOfType(InvalidSelectorException.class)
575588
.isThrownBy(() -> driver.findElement(By.cssSelector("")));
576589
}
577590

578591
@Test
592+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
579593
void testFindingMultipleElementsByEmptyCssSelectorShouldThrow() {
580594
driver.get(pages.xhtmlTestPage);
581595
assertThatExceptionOfType(InvalidSelectorException.class)
582596
.isThrownBy(() -> driver.findElements(By.cssSelector("")));
583597
}
584598

585599
@Test
600+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
586601
void testFindingASingleElementByInvalidCssSelectorShouldThrow() {
587602
driver.get(pages.xhtmlTestPage);
588603
assertThatExceptionOfType(InvalidSelectorException.class)
589604
.isThrownBy(() -> driver.findElement(By.cssSelector("//a/b/c[@id='1']")));
590605
}
591606

592607
@Test
608+
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
593609
void testFindingMultipleElementsByInvalidCssSelectorShouldThrow() {
594610
driver.get(pages.xhtmlTestPage);
595611
assertThatExceptionOfType(InvalidSelectorException.class)
@@ -753,10 +769,6 @@ public void testShouldNotBeAbleToLocateASingleElementOnABlankPage() {
753769

754770
@SwitchToTopAfterTest
755771
@Test
756-
@Ignore(
757-
value = CHROME,
758-
reason = "Element in different browsing context can not evaluate stale",
759-
issue = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=3742")
760772
public void testAnElementFoundInADifferentFrameIsNotFound() {
761773
driver.get(pages.missedJsReferencePage);
762774
driver.switchTo().frame("inner");

0 commit comments

Comments
 (0)