Skip to content

Commit e9a906a

Browse files
committed
Remove getScreenshot method from FirefoxDriver as it's in RemoteWebDriver
Try and reduce the amount of code we have to maintain.
1 parent 0a8aa60 commit e9a906a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import org.openqa.selenium.Capabilities;
2828
import org.openqa.selenium.NoSuchSessionException;
29-
import org.openqa.selenium.OutputType;
3029
import org.openqa.selenium.Proxy;
3130
import org.openqa.selenium.WebDriverException;
3231
import org.openqa.selenium.firefox.internal.NewProfileExtensionConnection;
@@ -417,13 +416,6 @@ private static Capabilities dropCapabilities(Capabilities capabilities) {
417416
return caps;
418417
}
419418

420-
public <X> X getScreenshotAs(OutputType<X> target) {
421-
// Get the screenshot as base64.
422-
String base64 = execute(DriverCommand.SCREENSHOT).getValue().toString();
423-
// ... and convert it.
424-
return target.convertFromBase64Png(base64);
425-
}
426-
427419
public static class LazyCommandExecutor implements CommandExecutor, NeedsLocalLogs {
428420
private ExtensionConnection connection;
429421
private final FirefoxBinary binary;

0 commit comments

Comments
 (0)