[Question] wait for console debug event using Firefox browser
See original GitHub issueUsing the below code, I am waiting for a console message in debug level to be displayed in the browser, when I run with Chrome it works fine, but when I run with firefox, the console messages that are on debug level are not captured, is there any specific configuration I need to do, to be able to listen for debug level console messages using Firefox browser?
try {
await this.page.waitForEvent('console', {
predicate: async (consoleMessage: ConsoleMessage) => {
return consoleMessage.text() === message
},
timeout: timeout
})
} catch (e) {
throw new Error(`error waiting for message "${message}" Cause: ${e}`)
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
console - Web APIs - MDN Web Docs
Chrome Edge Firefox
console Full support. Chrome1. Toggle history Full support. Edge12. Toggle history Full s...
assert Full support. Chrome1. Toggle history Full support. Edge12....
Read more >Faster smarter JavaScript debugging in Firefox DevTools
A rock-solid debugging experience. Fast and reliable debugging is the result of many smaller interactions. From initial loading and source ...
Read more >debugger - JavaScript - MDN Web Docs
When the debugger is invoked, execution is paused at the debugger statement. It is like a breakpoint in the script source.
Read more >console.time() - Web APIs - MDN Web Docs
The console.time() method starts a timer you can use to track how long an operation takes. You give each timer a unique name,...
Read more >Set event listener breakpoints - Firefox Source Docs - Mozilla
Starting with Firefox 69, debugging an application that includes event handlers is simplified because the debugger now includes the ability to automatically ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have tried using both approaches, I will try to come up with some better example to repro it and get back here once I have it 😃
We need more information to act on this report. Please file a new one and link to this issue when you get back to it!