Uses of Class
com.microsoft.playwright.Locator.ScreenshotOptions
Packages that use Locator.ScreenshotOptions
-
Uses of Locator.ScreenshotOptions in com.microsoft.playwright
Methods in com.microsoft.playwright that return Locator.ScreenshotOptionsModifier and TypeMethodDescriptionLocator.ScreenshotOptions.setAnimations(ScreenshotAnimations animations) When set to"disabled", stops CSS animations, CSS transitions and Web Animations.Locator.ScreenshotOptions.setCaret(ScreenshotCaret caret) When set to"hide", screenshot will hide text caret.Specify locators that should be masked when the screenshot is taken.Locator.ScreenshotOptions.setMaskColor(String maskColor) Specify the color of the overlay box for masked elements, in CSS color format.Locator.ScreenshotOptions.setOmitBackground(boolean omitBackground) Hides default white background and allows capturing screenshots with transparency.The file path to save the image to.Locator.ScreenshotOptions.setQuality(int quality) The quality of the image, between 0-100.Locator.ScreenshotOptions.setScale(ScreenshotScale scale) When set to"css", screenshot will have a single pixel per each css pixel on the page.Locator.ScreenshotOptions.setTimeout(double timeout) Maximum time in milliseconds.Locator.ScreenshotOptions.setType(ScreenshotType type) Specify screenshot type, defaults topng.Methods in com.microsoft.playwright with parameters of type Locator.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]Locator.screenshot(Locator.ScreenshotOptions options) Take a screenshot of the element matching the locator. -
Uses of Locator.ScreenshotOptions in com.microsoft.playwright.impl
Methods in com.microsoft.playwright.impl with parameters of type Locator.ScreenshotOptionsModifier and TypeMethodDescriptionbyte[]LocatorImpl.screenshot(Locator.ScreenshotOptions options)