From ef3d9e870e0d88b99878f20e1c4914d70643e105 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 2 Apr 2024 14:05:00 +0200 Subject: [PATCH] [rb][java][dotnet][py] Skipping Edge tests due to https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743 --- dotnet/test/common/ClearTest.cs | 2 ++ dotnet/test/common/ElementFindingTest.cs | 8 ++++++++ java/test/org/openqa/selenium/ClearTest.java | 3 +++ .../org/openqa/selenium/ElementFindingTest.java | 17 +++++++++++++++++ .../selenium/webdriver/common/clear_tests.py | 2 ++ .../common/driver_element_finding_tests.py | 17 +++++++++++++++++ .../webdriver/common/webdriverwait_tests.py | 1 + .../selenium/webdriver/driver_spec.rb | 2 +- 8 files changed, 51 insertions(+), 1 deletion(-) diff --git a/dotnet/test/common/ClearTest.cs b/dotnet/test/common/ClearTest.cs index 15a43f0c8f8cc..bf094fe68035a 100644 --- a/dotnet/test/common/ClearTest.cs +++ b/dotnet/test/common/ClearTest.cs @@ -17,6 +17,7 @@ public void WritableTextInputShouldClear() [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void TextInputShouldNotClearWhenDisabled() { driver.Url = readOnlyPage; @@ -44,6 +45,7 @@ public void WritableTextAreaShouldClear() [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void TextAreaShouldNotClearWhenDisabled() { driver.Url = readOnlyPage; diff --git a/dotnet/test/common/ElementFindingTest.cs b/dotnet/test/common/ElementFindingTest.cs index 24c64e9c74468..2fbd7058ef4ba 100644 --- a/dotnet/test/common/ElementFindingTest.cs +++ b/dotnet/test/common/ElementFindingTest.cs @@ -439,6 +439,7 @@ public void ShouldThrowAnExceptionWhenThereIsNoLinkToClick() [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElement() { driver.Url = formsPage; @@ -447,6 +448,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidIn [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElements() { if (TestUtilities.IsIE6(driver)) @@ -461,6 +463,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidIn [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElement() { driver.Url = formsPage; @@ -470,6 +473,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidIn [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElements() { driver.Url = formsPage; @@ -479,6 +483,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidIn [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElement() { driver.Url = formsPage; @@ -487,6 +492,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriver [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElements() { if (TestUtilities.IsIE6(driver)) @@ -501,6 +507,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriver [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElement() { driver.Url = formsPage; @@ -511,6 +518,7 @@ public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElemen [Test] [IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] + [IgnoreBrowser(Browser.Edge, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")] public void ShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElements() { if (TestUtilities.IsIE6(driver)) diff --git a/java/test/org/openqa/selenium/ClearTest.java b/java/test/org/openqa/selenium/ClearTest.java index 0e35d8909489a..5b607606a9cd8 100644 --- a/java/test/org/openqa/selenium/ClearTest.java +++ b/java/test/org/openqa/selenium/ClearTest.java @@ -20,6 +20,7 @@ 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.EDGE; import static org.openqa.selenium.testing.drivers.Browser.IE; import org.junit.jupiter.api.Test; @@ -39,6 +40,7 @@ void testWritableTextInputShouldClear() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testTextInputShouldNotClearWhenDisabled() { driver.get(pages.readOnlyPage); WebElement element = driver.findElement(By.id("textInputNotEnabled")); @@ -63,6 +65,7 @@ void testWritableTextAreaShouldClear() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testTextAreaShouldNotClearWhenDisabled() { driver.get(pages.readOnlyPage); WebElement element = driver.findElement(By.id("textAreaNotEnabled")); diff --git a/java/test/org/openqa/selenium/ElementFindingTest.java b/java/test/org/openqa/selenium/ElementFindingTest.java index 02b45bcc8b07d..2fd7345c4174d 100644 --- a/java/test/org/openqa/selenium/ElementFindingTest.java +++ b/java/test/org/openqa/selenium/ElementFindingTest.java @@ -20,6 +20,7 @@ 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.EDGE; import static org.openqa.selenium.testing.drivers.Browser.FIREFOX; import static org.openqa.selenium.testing.drivers.Browser.IE; import static org.openqa.selenium.testing.drivers.Browser.SAFARI; @@ -100,6 +101,7 @@ void testShouldNotBeAbleToLocateByIdMultipleElementsThatDoNotExist() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingASingleElementByEmptyIdShouldThrow() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -108,6 +110,7 @@ void testFindingASingleElementByEmptyIdShouldThrow() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") public void testFindingMultipleElementsByEmptyIdShouldThrow() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -318,6 +321,7 @@ void testShouldNotFindElementByClassWhenTheNameQueriedIsShorterThanCandidateName @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingASingleElementByEmptyClassNameShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -326,6 +330,7 @@ void testFindingASingleElementByEmptyClassNameShouldThrow() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingMultipleElementsByEmptyClassNameShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -439,6 +444,7 @@ void testShouldThrowAnExceptionWhenThereIsNoLinkToClick() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElement() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -447,6 +453,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDriverFindElements() { driver.get(pages.formPage); @@ -456,6 +463,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElement() { driver.get(pages.formPage); @@ -466,6 +474,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInElementFindElements() { driver.get(pages.formPage); @@ -476,6 +485,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathIsSyntacticallyInvalidInDri @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElement() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -484,6 +494,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFin @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFindElements() { driver.get(pages.formPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -492,6 +503,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInDriverFin @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElement() { driver.get(pages.formPage); @@ -502,6 +514,7 @@ void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFi @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testShouldThrowInvalidSelectorExceptionWhenXPathReturnsWrongTypeInElementFindElements() { driver.get(pages.formPage); WebElement body = driver.findElement(By.tagName("body")); @@ -582,6 +595,7 @@ void testShouldNotFindElementsByCssSelectorWhenThereIsNoSuchElement() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingASingleElementByEmptyCssSelectorShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -590,6 +604,7 @@ void testFindingASingleElementByEmptyCssSelectorShouldThrow() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingMultipleElementsByEmptyCssSelectorShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -598,6 +613,7 @@ void testFindingMultipleElementsByEmptyCssSelectorShouldThrow() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingASingleElementByInvalidCssSelectorShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) @@ -606,6 +622,7 @@ void testFindingASingleElementByInvalidCssSelectorShouldThrow() { @Test @Ignore(value = CHROME, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") + @Ignore(value = EDGE, reason = "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") void testFindingMultipleElementsByInvalidCssSelectorShouldThrow() { driver.get(pages.xhtmlTestPage); assertThatExceptionOfType(InvalidSelectorException.class) diff --git a/py/test/selenium/webdriver/common/clear_tests.py b/py/test/selenium/webdriver/common/clear_tests.py index e3f5c7460f597..737dd0b44dbdd 100644 --- a/py/test/selenium/webdriver/common/clear_tests.py +++ b/py/test/selenium/webdriver/common/clear_tests.py @@ -29,6 +29,7 @@ def test_writable_text_input_should_clear(driver, pages): @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_text_input_should_not_clear_when_disabled(driver, pages): pages.load("readOnlyPage.html") element = driver.find_element(By.ID, "textInputNotEnabled") @@ -52,6 +53,7 @@ def test_writable_text_area_should_clear(driver, pages): @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_text_area_should_not_clear_when_disabled(driver, pages): pages.load("readOnlyPage.html") element = driver.find_element(By.ID, "textAreaNotEnabled") diff --git a/py/test/selenium/webdriver/common/driver_element_finding_tests.py b/py/test/selenium/webdriver/common/driver_element_finding_tests.py index bf7c892032607..2fd0db32b96e3 100644 --- a/py/test/selenium/webdriver/common/driver_element_finding_tests.py +++ b/py/test/selenium/webdriver/common/driver_element_finding_tests.py @@ -194,6 +194,7 @@ def test_should_not_be_able_to_locate_by_tag_name_multiple_elements_that_do_not_ @pytest.mark.xfail_remote(reason="https://github.com/mozilla/geckodriver/issues/2007") @pytest.mark.xfail_safari(reason="unlike chrome, safari raises NoSuchElementException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_asingle_element_by_empty_tag_name_should_throw(driver, pages): pages.load("formPage.html") with pytest.raises(InvalidSelectorException): @@ -204,6 +205,7 @@ def test_finding_asingle_element_by_empty_tag_name_should_throw(driver, pages): @pytest.mark.xfail_remote(reason="https://github.com/mozilla/geckodriver/issues/2007") @pytest.mark.xfail_safari(reason="unlike chrome, safari returns an empty list") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_multiple_elements_by_empty_tag_name_should_throw(driver, pages): pages.load("formPage.html") with pytest.raises(InvalidSelectorException): @@ -279,6 +281,7 @@ def test_should_not_find_element_by_class_when_the_name_queried_is_shorter_than_ @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_asingle_element_by_empty_class_name_should_throw(driver, pages): pages.load("xhtmlTest.html") msg = r"\/errors#invalid-selector-exception" @@ -302,6 +305,7 @@ def test_finding_asingle_element_by_compound_class_name_should_throw(driver, pag @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_asingle_element_by_invalid_class_name_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): @@ -310,6 +314,7 @@ def test_finding_asingle_element_by_invalid_class_name_should_throw(driver, page @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_multiple_elements_by_invalid_class_name_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): @@ -394,6 +399,7 @@ def test_should_throw_an_exception_when_there_is_no_link_to_click(driver, pages) @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_driver_find_element( driver, pages ): @@ -404,6 +410,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_driver_find_elements( driver, pages ): @@ -414,6 +421,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_element_find_element( driver, pages ): @@ -425,6 +433,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_invalid_in_element_find_elements( driver, pages ): @@ -436,6 +445,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_is_syntactically_inv @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_driver_find_element(driver, pages): pages.load("formPage.html") with pytest.raises(InvalidSelectorException): @@ -444,6 +454,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_i @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_driver_find_elements(driver, pages): pages.load("formPage.html") with pytest.raises(InvalidSelectorException): @@ -452,6 +463,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_i @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_element_find_element(driver, pages): pages.load("formPage.html") body = driver.find_element(By.TAG_NAME, "body") @@ -461,6 +473,7 @@ def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_i @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_throw_invalid_selector_exception_when_xpath_returns_wrong_type_in_element_find_elements(driver, pages): pages.load("formPage.html") body = driver.find_element(By.TAG_NAME, "body") @@ -534,6 +547,7 @@ def test_should_not_find_elements_by_css_selector_when_there_is_no_such_element( @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_asingle_element_by_empty_css_selector_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): @@ -542,6 +556,7 @@ def test_finding_asingle_element_by_empty_css_selector_should_throw(driver, page @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_multiple_elements_by_empty_css_selector_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): @@ -550,6 +565,7 @@ def test_finding_multiple_elements_by_empty_css_selector_should_throw(driver, pa @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_asingle_element_by_invalid_css_selector_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): @@ -558,6 +574,7 @@ def test_finding_asingle_element_by_invalid_css_selector_should_throw(driver, pa @pytest.mark.xfail_safari(reason="unlike chrome, safari raises TimeoutException") @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_finding_multiple_elements_by_invalid_css_selector_should_throw(driver, pages): pages.load("xhtmlTest.html") with pytest.raises(InvalidSelectorException): diff --git a/py/test/selenium/webdriver/common/webdriverwait_tests.py b/py/test/selenium/webdriver/common/webdriverwait_tests.py index f08067f8fd9d3..14019d185e8b0 100644 --- a/py/test/selenium/webdriver/common/webdriverwait_tests.py +++ b/py/test/selenium/webdriver/common/webdriverwait_tests.py @@ -34,6 +34,7 @@ def throw_sere(driver): @pytest.mark.xfail_chrome(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") +@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743") def test_should_fail_with_invalid_selector_exception(driver, pages): pages.load("dynamic.html") with pytest.raises(InvalidSelectorException): diff --git a/rb/spec/integration/selenium/webdriver/driver_spec.rb b/rb/spec/integration/selenium/webdriver/driver_spec.rb index 7352e5ce48245..e478e66d88678 100644 --- a/rb/spec/integration/selenium/webdriver/driver_spec.rb +++ b/rb/spec/integration/selenium/webdriver/driver_spec.rb @@ -148,7 +148,7 @@ module WebDriver end it 'raises if invalid locator', - exclude: {browser: %i[safari safari_preview chrome], + exclude: {browser: %i[safari safari_preview chrome edge], reason: 'Safari TimeoutError + https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743'} do driver.navigate.to url_for('xhtmlTest.html') expect {