Skip to content

Commit 70b0bb8

Browse files
committed
[java] Removing check for TAKES_SCREENSHOT in test
As this is not affecting if the test runs or not.
1 parent 348f17b commit 70b0bb8

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
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.HTMLUNIT;
24-
2520
import org.junit.Test;
2621
import org.openqa.selenium.By;
2722
import org.openqa.selenium.NoSuchElementException;
@@ -30,6 +25,11 @@
3025
import org.openqa.selenium.testing.Ignore;
3126
import org.openqa.selenium.testing.JUnit4TestBase;
3227

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+
3333
@Ignore(HTMLUNIT)
3434
public class RemoteWebDriverScreenshotTest extends JUnit4TestBase {
3535

@@ -56,13 +56,6 @@ public void testCanAugmentWebDriverInstanceIfNecessary() {
5656
return;
5757
}
5858

59-
RemoteWebDriver remote = (RemoteWebDriver) driver;
60-
Boolean screenshots = (Boolean) remote.getCapabilities()
61-
.getCapability(CapabilityType.TAKES_SCREENSHOT);
62-
if (screenshots == null || !screenshots) {
63-
System.out.println("Skipping test: remote driver cannot take screenshots");
64-
}
65-
6659
driver.get(pages.formPage);
6760
WebDriver toUse = new Augmenter().augment(driver);
6861
String screenshot = ((TakesScreenshot) toUse).getScreenshotAs(BASE64);

0 commit comments

Comments
 (0)