From f2441eb4b5f2be1903b0e42aa96e5481bc779342 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 14 May 2024 00:56:14 +0200 Subject: [PATCH] docs(dotnet): roll fixes (#30771) --- docs/src/api/class-page.md | 2 +- utils/doclint/generateDotnetApi.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 960c886fed..e0ee157045 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -3388,7 +3388,7 @@ Function that should be run once [`param: locator`] appears. This function shoul ### param: Page.addLocatorHandler.handler * langs: csharp * since: v1.42 -- `handler` <[function]\([Locator]\)> +- `handler` <[function]\([Locator]\): [Promise]> Function that should be run once [`param: locator`] appears. This function should get rid of the element that blocks actions like click. diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js index ed801b4057..eb9e681ff1 100644 --- a/utils/doclint/generateDotnetApi.js +++ b/utils/doclint/generateDotnetApi.js @@ -416,7 +416,7 @@ function generateNameDefault(member, name, t, parent) { attemptedName = `${parent.name}BoundingBoxResult`; if (attemptedName === 'BrowserContextCookie') attemptedName = 'BrowserContextCookiesResult'; - if (attemptedName === 'File' || (parent.name === 'FormData' && attemptedName === 'SetValue')) + if (attemptedName === 'File' || (parent.name === 'FormData' && ['SetValue', 'AppendValue'].includes(attemptedName))) attemptedName = `FilePayload`; if (attemptedName === 'Size') attemptedName = 'RequestSizesResult';