Skip to content

Commit f38dc06

Browse files
committed
[java] Skipping tests in Firefox
Because CDP connection cannot get established
1 parent 98c78ac commit f38dc06

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

java/test/org/openqa/selenium/remote/RemoteWebDriverScreenshotTest.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
package org.openqa.selenium.remote;
1919

20+
import static org.assertj.core.api.Assertions.assertThat;
21+
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
22+
import static org.openqa.selenium.OutputType.BASE64;
23+
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
24+
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
25+
2026
import org.junit.Test;
2127
import org.openqa.selenium.By;
2228
import org.openqa.selenium.NoSuchElementException;
@@ -25,11 +31,6 @@
2531
import org.openqa.selenium.testing.Ignore;
2632
import org.openqa.selenium.testing.JUnit4TestBase;
2733

28-
import static org.assertj.core.api.Assertions.assertThat;
29-
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
30-
import static org.openqa.selenium.OutputType.BASE64;
31-
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
32-
3334
@Ignore(HTMLUNIT)
3435
public class RemoteWebDriverScreenshotTest extends JUnit4TestBase {
3536

@@ -50,6 +51,9 @@ public void testShouldBeAbleToGrabASnapshotOnException() {
5051
}
5152

5253
@Test
54+
@Ignore(value = FIREFOX, gitHubActions = true,
55+
reason = "Augmenter does not work well with Firefox and RemoteWebDriver, "
56+
+ "connection to CDP cannot be established")
5357
public void testCanAugmentWebDriverInstanceIfNecessary() {
5458
if (!(driver instanceof RemoteWebDriver)) {
5559
System.out.println("Skipping test: driver is not a remote webdriver");

0 commit comments

Comments
 (0)