[java] Removing check for TAKES_SCREENSHOT in test
As this is not affecting if the test runs or not.
package org.openqa.selenium.remote;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.openqa.selenium.OutputType.BASE64;
-import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
-
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
+import static org.openqa.selenium.OutputType.BASE64;
+import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
+
@Ignore(HTMLUNIT)
public class RemoteWebDriverScreenshotTest extends JUnit4TestBase {
@@ -56,13 +56,6 @@ public void testCanAugmentWebDriverInstanceIfNecessary() {
return;
}
- RemoteWebDriver remote = (RemoteWebDriver) driver;
- Boolean screenshots = (Boolean) remote.getCapabilities()
- .getCapability(CapabilityType.TAKES_SCREENSHOT);
- if (screenshots == null || !screenshots) {
- System.out.println("Skipping test: remote driver cannot take screenshots");
- }
-
driver.get(pages.formPage);
WebDriver toUse = new Augmenter().augment(driver);
String screenshot = ((TakesScreenshot) toUse).getScreenshotAs(BASE64);
