Rayrun
โ† Back to Discord Forum

How to turn off logging in Playwright.NET?

I am doing performance tests using Playwright.NET, but I would like to turn off playwright logging, so the measurements will be more clean, not slowed down by logging ๐Ÿ™‚ Thanks a lot for any help, I will greatly appreciate ๐Ÿ™‚

This thread is trying to answer question "How can I turn off logging in Playwright.NET for performance tests, what LoadState should I use for measuring page load, and is Playwright.NET suitable for performance tests? How does the WaitForLoadState method function?"

3 replies

And another question, when I am measuring page load, what LoadState should I use? (Load / DOMContentLoaded / NetworkIdle)

Will playwright measure this for me correctly? I did this test, but I think it gives me higher values then it was really loading... Is Playwright even suitable for doing performance tests?

I am thinking, does the WaitForLoadState method return immediately when the page is loaded, or does it do this check only once in a while?

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].