Skip to content

Commit

Permalink
more-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jun 20, 2024
1 parent ee360f0 commit 531690c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/firefox/firefoxBidi.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ export class FirefoxBidi {
};
const bidi = new Bidi(this.driver, this.options.browser);

await bidi.send(command);
const res = await bidi.send(command);
log.info(res);
await bidi.subscribe('network.beforeRequestSent');
await bidi.onMessage(async function (event) {
const parsedEvent = JSON.parse(Buffer.from(event.toString()));
Expand All @@ -190,10 +191,12 @@ export class FirefoxBidi {
};
const result = await bidi.send(continueRequest);
if (result.type == 'success') {
log.info('success');
log.info(result);
} else {
log.error(result);
}
} else {
log.info(parsedEvent.method);
}
});
}
Expand Down

0 comments on commit 531690c

Please sign in to comment.