From 77d3b66cf7f044c81f36aa2e11203c77be704b42 Mon Sep 17 00:00:00 2001 From: amaechi hope Date: Fri, 18 Oct 2024 10:19:59 +0100 Subject: [PATCH] docs(dotnet): fix code snippets shadow dom --- docs/src/locators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/locators.md b/docs/src/locators.md index 648a654177..d1daa5f65d 100644 --- a/docs/src/locators.md +++ b/docs/src/locators.md @@ -730,7 +730,7 @@ await page.get_by_text("Details").click() page.get_by_text("Details").click() ``` ```csharp -await page.GetByText("Details").ClickAsync(); +await Page.GetByText("Details").ClickAsync(); ``` ```html @@ -757,7 +757,7 @@ await page.locator("x-details", has_text="Details" ).click() page.locator("x-details", has_text="Details" ).click() ``` ```csharp -await page +await Page .Locator("x-details", new() { HasText = "Details" }) .ClickAsync(); ```