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.browser()](#pagebrowser)
|
||||||
* [page.browserContext()](#pagebrowsercontext)
|
* [page.browserContext()](#pagebrowsercontext)
|
||||||
* [page.click(selector[, options])](#pageclickselector-options)
|
* [page.click(selector[, options])](#pageclickselector-options)
|
||||||
* [page.client()](#pageclient)
|
|
||||||
* [page.close([options])](#pagecloseoptions)
|
* [page.close([options])](#pagecloseoptions)
|
||||||
* [page.content()](#pagecontent)
|
* [page.content()](#pagecontent)
|
||||||
* [page.cookies([...urls])](#pagecookiesurls)
|
* [page.cookies([...urls])](#pagecookiesurls)
|
||||||
@ -1466,12 +1465,6 @@ const [response] = await Promise.all([
|
|||||||
|
|
||||||
Shortcut for [page.mainFrame().click(selector[, options])](#frameclickselector-options).
|
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])
|
#### page.close([options])
|
||||||
|
|
||||||
- `options` <[Object]>
|
- `options` <[Object]>
|
||||||
|
@ -731,6 +731,7 @@ export class Page extends EventEmitter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the CDP session client the page belongs to.
|
* Get the CDP session client the page belongs to.
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
client(): CDPSession {
|
client(): CDPSession {
|
||||||
return this._client;
|
return this._client;
|
||||||
|
@ -25,6 +25,7 @@ const {
|
|||||||
const EXCLUDE_PROPERTIES = new Set([
|
const EXCLUDE_PROPERTIES = new Set([
|
||||||
'Browser.create',
|
'Browser.create',
|
||||||
'Headers.fromPayload',
|
'Headers.fromPayload',
|
||||||
|
'Page.client',
|
||||||
'Page.create',
|
'Page.create',
|
||||||
'JSHandle.toString',
|
'JSHandle.toString',
|
||||||
'TimeoutError.name',
|
'TimeoutError.name',
|
||||||
|
Loading…
Reference in New Issue
Block a user