puppeteer/website/versioned_docs/version-10.1.0/puppeteer.connection.createsession.md
2021-08-10 11:09:48 +01:00

636 B

Home > puppeteer > Connection > createSession

Connection.createSession() method

Signature:

createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>;

Parameters

Parameter Type Description
targetInfo Protocol.Target.TargetInfo The target info

Returns:

Promise<CDPSession>

The CDP session that is created