File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
java/client/src/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .Base64 ;
25
25
26
26
/**
27
- * Defines the output type for a screenshot. See org.openqa.selenium.Screenshot for usage and
28
- * examples.
27
+ * Defines the output type for a screenshot.
29
28
*
30
29
* @see TakesScreenshot
31
30
* @param <T> Type for the screenshot output.
Original file line number Diff line number Diff line change 23
23
* Example usage:
24
24
*
25
25
* <pre>
26
- * import static openqa.selenium.OutputType.*;
27
- *
28
- * File screenshotFile = ((Screenshot)driver).getScreenshotAs(file);
29
- * String screenshotBase64 = ((Screenshot)driver).getScreenshotAs(base64);
26
+ * File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
27
+ * String screenshotBase64 = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BASE64);
30
28
* </pre>
31
29
*
32
30
* @see OutputType
@@ -47,7 +45,7 @@ public interface TakesScreenshot {
47
45
* <p>For WebElement extending TakesScreenshot, this makes a best effort
48
46
* depending on the browser to return the following in order of preference:
49
47
* - The entire content of the HTML element
50
- * - The visisble portion of the HTML element
48
+ * - The visible portion of the HTML element
51
49
*
52
50
* @param <X> Return type for getScreenshotAs.
53
51
* @param target target type, @see OutputType
You can’t perform that action at this time.
0 commit comments