Ver Fonte

updated puppeteer-core

Gildas há 5 anos atrás
pai
commit
5d3fc1e9ea
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      cli/back-ends/puppeteer.js
  2. 1 1
      package.json

+ 1 - 1
cli/back-ends/puppeteer.js

@@ -99,7 +99,7 @@ async function getPageData(browser, page, options) {
 	const injectedScript = await scripts.get(options);
 	const injectedScript = await scripts.get(options);
 	await page.evaluateOnNewDocument(injectedScript);
 	await page.evaluateOnNewDocument(injectedScript);
 	if (options.browserDebug) {
 	if (options.browserDebug) {
-		await page.waitFor(3000);
+		await page.waitForTimeout(3000);
 	}
 	}
 	try {
 	try {
 		await pageGoto(page, options);
 		await pageGoto(page, options);

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
 		"file-url": "^3.0.0",
 		"file-url": "^3.0.0",
 		"iconv-lite": "^0.5.2",
 		"iconv-lite": "^0.5.2",
 		"jsdom": "^16.4.0",
 		"jsdom": "^16.4.0",
-		"puppeteer-core": "^3.0.4",
+		"puppeteer-core": "^5.3.0",
 		"request-promise-native": "1.0.8",
 		"request-promise-native": "1.0.8",
 		"selenium-webdriver": "4.0.0-alpha.7",
 		"selenium-webdriver": "4.0.0-alpha.7",
 		"strong-data-uri": "^1.0.6",
 		"strong-data-uri": "^1.0.6",