Skip to content

Commit 7f36b75

Browse files
committed
fixup! [java] Add hooks around getScreenshotAs in WebDriverListener #16232
1 parent a2d50c4 commit 7f36b75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/src/org/openqa/selenium/support/events/WebDriverListener.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,15 +604,17 @@ default void beforeGetCssValue(WebElement element, String propertyName) {}
604604
default void afterGetCssValue(WebElement element, String propertyName, String result) {}
605605

606606
/**
607+
* This method will be called before {@link TakesScreenshot#getScreenshotAs(OutputType)} is
608+
* called.
609+
*
607610
* @param element - decorated WebElement instance
608611
* @param target - target type, @see OutputType
609612
* @param <X> - return type for getScreenshotAs.
610613
*/
611614
default <X> void beforeGetScreenshotAs(WebElement element, OutputType<X> target) {}
612615

613616
/**
614-
* This action will be performed each time after {@link WebDriver.TargetLocator#alert()} is
615-
* called.
617+
* This method will be called after {@link TakesScreenshot#getScreenshotAs(OutputType)} is called.
616618
*
617619
* @param element - decorated WebElement instance
618620
* @param target - target type, @see OutputType

0 commit comments

Comments
 (0)