Skip to content

Commit 430b19b

Browse files
alb-i986lukeis
authored andcommitted
fix javadocs for TakesScreenshot and OutputType (#2446)
1 parent 125dd35 commit 430b19b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

java/client/src/org/openqa/selenium/OutputType.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
import java.util.Base64;
2525

2626
/**
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.
2928
*
3029
* @see TakesScreenshot
3130
* @param <T> Type for the screenshot output.

java/client/src/org/openqa/selenium/TakesScreenshot.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
* Example usage:
2424
*
2525
* <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);
3028
* </pre>
3129
*
3230
* @see OutputType
@@ -47,7 +45,7 @@ public interface TakesScreenshot {
4745
* <p>For WebElement extending TakesScreenshot, this makes a best effort
4846
* depending on the browser to return the following in order of preference:
4947
* - The entire content of the HTML element
50-
* - The visisble portion of the HTML element
48+
* - The visible portion of the HTML element
5149
*
5250
* @param <X> Return type for getScreenshotAs.
5351
* @param target target type, @see OutputType

0 commit comments

Comments
 (0)