From e9d0b5ee1d6589c63ec9b8a8207f4d9c603d861f Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 8 Dec 2021 12:38:59 -0800 Subject: [PATCH] docs: fix locator screenshot examples (#10794) --- docs/src/screenshots.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/screenshots.md b/docs/src/screenshots.md index 62cdf56427..e7efe050ac 100644 --- a/docs/src/screenshots.md +++ b/docs/src/screenshots.md @@ -83,7 +83,7 @@ await page.locator('.header').screenshot({ path: 'screenshot.png' }); ``` ```java -page.locator(".header").screenshot(new ElementHandle.ScreenshotOptions().setPath(Paths.get("screenshot.png"))); +page.locator(".header").screenshot(new Locator.ScreenshotOptions().setPath(Paths.get("screenshot.png"))); ``` ```python async @@ -95,5 +95,5 @@ page.locator(".header").screenshot(path="screenshot.png") ``` ```csharp -await page.Locator(".header").ScreenshotAsync(new ElementHandleScreenshotOptions { Path = "screenshot.png" }); +await page.Locator(".header").ScreenshotAsync(new LocatorScreenshotOptions { Path = "screenshot.png" }); ```