mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:33:25 +00:00
Add console logs to browser dev cli
This commit is contained in:
@@ -41,6 +41,7 @@ async function runBrowserScraping(
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
||||
});
|
||||
const page = await browser.newPage();
|
||||
page.on('console', (message) => console.log(`${message.type().slice(0, 3).toUpperCase()} ${message.text()}`));
|
||||
await page.goto(server.resolvedUrls.local[0]);
|
||||
await page.waitForFunction('!!window.scrape', { timeout: 5000 });
|
||||
|
||||
|
Reference in New Issue
Block a user