DEBUG_NETWORK=1 to log network requests and responses instead of DEBUG && RECORD
This commit is contained in:
parent
19e9bb9cfc
commit
30957d63d0
2 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ const page = context.pages().length ? context.pages()[0] : await context.newPage
|
|||
// console.debug('userAgent:', await page.evaluate(() => navigator.userAgent));
|
||||
// eslint-disable-next-line no-undef
|
||||
if (cfg.debug) console.debug(await page.evaluate(() => window.screen));
|
||||
if (cfg.record && cfg.debug) {
|
||||
if (cfg.debug_network) {
|
||||
// const filter = _ => true;
|
||||
const filter = r => r.url().includes('store.epicgames.com');
|
||||
page.on('request', request => filter(request) && console.log('>>', request.method(), request.url()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue