mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(page): mark page.client() as internal (#7585)
This PR marks the .client() method as internal since we don't encourage our users to use it.
This commit is contained in:
parent
99ca842124
commit
8451951483
@ -133,7 +133,6 @@
|
||||
* [page.browser()](#pagebrowser)
|
||||
* [page.browserContext()](#pagebrowsercontext)
|
||||
* [page.click(selector[, options])](#pageclickselector-options)
|
||||
* [page.client()](#pageclient)
|
||||
* [page.close([options])](#pagecloseoptions)
|
||||
* [page.content()](#pagecontent)
|
||||
* [page.cookies([...urls])](#pagecookiesurls)
|
||||
@ -1466,12 +1465,6 @@ const [response] = await Promise.all([
|
||||
|
||||
Shortcut for [page.mainFrame().click(selector[, options])](#frameclickselector-options).
|
||||
|
||||
#### page.client()
|
||||
|
||||
- returns: <[CDPSession]>
|
||||
|
||||
Get the CDP session client the page belongs to.
|
||||
|
||||
#### page.close([options])
|
||||
|
||||
- `options` <[Object]>
|
||||
|
@ -731,6 +731,7 @@ export class Page extends EventEmitter {
|
||||
|
||||
/**
|
||||
* Get the CDP session client the page belongs to.
|
||||
* @internal
|
||||
*/
|
||||
client(): CDPSession {
|
||||
return this._client;
|
||||
|
@ -25,6 +25,7 @@ const {
|
||||
const EXCLUDE_PROPERTIES = new Set([
|
||||
'Browser.create',
|
||||
'Headers.fromPayload',
|
||||
'Page.client',
|
||||
'Page.create',
|
||||
'JSHandle.toString',
|
||||
'TimeoutError.name',
|
||||
|
Loading…
Reference in New Issue
Block a user