cherry-pick(#23315): docs: fix since version for the methods new in 1.34 (#23316)

This commit is contained in:
Playwright Service 2023-05-26 11:12:25 -07:00 коммит произвёл GitHub
Родитель f11873a895
Коммит a51d4a39b8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -95,7 +95,7 @@ Emitted when Browser context gets closed. This might happen because of one of th
* The [`method: Browser.close`] method was called.
## event: BrowserContext.console
* since: v1.33
* since: v1.34
* langs:
- alias-java: consoleMessage
- argument: <[ConsoleMessage]>
@ -156,7 +156,7 @@ await page.EvaluateAsync("console.log('hello', 5, { foo: 'bar' })");
## event: BrowserContext.dialog
* since: v1.33
* since: v1.34
- argument: <[Dialog]>
Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Listener **must** either [`method: Dialog.accept`] or [`method: Dialog.dismiss`] the dialog - otherwise the page will [freeze](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop#never_blocking) waiting for the dialog, and actions like click will never finish.

Просмотреть файл

@ -126,7 +126,7 @@ List of arguments passed to a `console` function call. See also [`event: Page.co
URL of the resource followed by 0-based line and column numbers in the resource formatted as `URL:line:column`.
## method: ConsoleMessage.page
* since: v1.33
* since: v1.34
- returns: <[null]|[Page]>
The page that produced this console message, if any.

Просмотреть файл

@ -138,7 +138,7 @@ Returns when the dialog has been dismissed.
A message displayed in the dialog.
## method: Dialog.page
* since: v1.33
* since: v1.34
- returns: <[null]|[Page]>
The page that initiated this dialog, if available.