auto-chrome
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -43,3 +43,3 @@ const Event = require('./Event'); | ||
*/ | ||
async newPage(url = 'about:blank') { | ||
async newPage(url = 'about:newtab') { | ||
@@ -85,4 +85,19 @@ let { targetId } = await this.send('Target.createTarget', { url }) | ||
} | ||
/** | ||
* 初始化标签页 | ||
*/ | ||
async initPage() { | ||
let [...pages] = await this.pages | ||
this.page = await this.newPage() | ||
for (let [id, page] of pages) { | ||
await page.close() | ||
} | ||
} | ||
} | ||
module.exports = Chrome |
{ | ||
"name": "auto-chrome", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "使用Node.js操作Chrome或Chromium,高仿真的用户行为模拟器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
568006
128
47
2814