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:
Andrey Lushnikov
2018-01-10 19:33:22 -08:00
committed by GitHub
parent ec8e40f1cb
commit 5368051610
17 changed files with 162 additions and 51 deletions

View File

@@ -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) {