Rayrun
← Back to Discord Forum

Change default timeout for onConsoleMessage.

My goal is to keep capturing all console messages from page. I tried using onConsoleMessage() but after some time, it stops capturing messages. Is there a way to remove/extend the timeout? I'm using Java/Kotlin.

This thread is trying to answer question "Is there a way to remove or extend the timeout for `onConsoleMessage()`?"

5 replies
tphillips8117

What are you wanting to do with the console messages? Can you share your code?

tphillips8117

You should get all console messages in the trace viewer now too

@tphillips8117: I simply want to capture *all* of the console messages logged on page, and I'm using `onConsoleMessage()` for that. However, after 60-90 seconds, it stops receiving messages, and my assumption is that it times out.

I simply want to capture all of the console messages logged on page, and I'm using onConsoleMessage() for that. However, after 60-90 seconds, it stops receiving messages, and my assumption is that it times out.

I guess I have to switch to another framework.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].