Skip to content

Commit

Permalink
[java] Skipping tests due to https://bugs.chromium.org/p/chromedriver…
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Mar 25, 2024
1 parent e383762 commit 96acefc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions java/test/org/openqa/selenium/ClearTest.java
Expand Up @@ -19,9 +19,11 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.IE;

import org.junit.jupiter.api.Test;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JupiterTestBase;
import org.openqa.selenium.testing.NotYetImplemented;

Expand All @@ -36,6 +38,7 @@ void testWritableTextInputShouldClear() {
}

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

@Test
@Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
void testTextAreaShouldNotClearWhenDisabled() {
driver.get(pages.readOnlyPage);
WebElement element = driver.findElement(By.id("textAreaNotEnabled"));
Expand Down
20 changes: 16 additions & 4 deletions java/test/org/openqa/selenium/ElementFindingTest.java
Expand Up @@ -99,13 +99,15 @@ void testShouldNotBeAbleToLocateByIdMultipleElementsThatDoNotExist() {
}

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

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

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

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

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

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

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

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

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

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

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

Expand All @@ -490,6 +501,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFi
}

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

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

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

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

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

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

0 comments on commit 96acefc

Please sign in to comment.