mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat: expose raw devtools protocol connection (#1770)
feat: expose raw devtools protocol connection This patch introduces `target.createCDPSession` method that allows directly communicating with the target over the Chrome DevTools Protocol. Fixes #31.
This commit is contained in:
@@ -28,7 +28,7 @@ const keyDefinitions = require('./USKeyboardLayout');
|
||||
|
||||
class Keyboard {
|
||||
/**
|
||||
* @param {!Puppeteer.Session} client
|
||||
* @param {!Puppeteer.CDPSession} client
|
||||
*/
|
||||
constructor(client) {
|
||||
this._client = client;
|
||||
@@ -189,7 +189,7 @@ class Keyboard {
|
||||
|
||||
class Mouse {
|
||||
/**
|
||||
* @param {Puppeteer.Session} client
|
||||
* @param {Puppeteer.CDPSession} client
|
||||
* @param {!Keyboard} keyboard
|
||||
*/
|
||||
constructor(client, keyboard) {
|
||||
@@ -268,7 +268,7 @@ class Mouse {
|
||||
|
||||
class Touchscreen {
|
||||
/**
|
||||
* @param {Puppeteer.Session} client
|
||||
* @param {Puppeteer.CDPSession} client
|
||||
* @param {Keyboard} keyboard
|
||||
*/
|
||||
constructor(client, keyboard) {
|
||||
|
||||
Reference in New Issue
Block a user