puppeteer
Advanced tools
Comparing version 1.0.0-next.1515107202232 to 1.0.0-next.1515176243781
@@ -134,6 +134,14 @@ /** | ||
async version() { | ||
const version = await this._connection.send('Browser.getVersion'); | ||
const version = await this._getVersion(); | ||
return version.product; | ||
} | ||
/** | ||
* @return {!Promise<string>} | ||
*/ | ||
async userAgent() { | ||
const version = await this._getVersion(); | ||
return version.userAgent; | ||
} | ||
async close() { | ||
@@ -147,2 +155,9 @@ await this._closeCallback.call(null); | ||
} | ||
/** | ||
* @return {!Promise<!Object>} | ||
*/ | ||
_getVersion() { | ||
return this._connection.send('Browser.getVersion'); | ||
} | ||
} | ||
@@ -149,0 +164,0 @@ |
{ | ||
"name": "puppeteer", | ||
"version": "1.0.0-next.1515107202232", | ||
"version": "1.0.0-next.1515176243781", | ||
"description": "A high-level API to control headless Chrome over the DevTools Protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
251054
6356