When testing web applications, you might need to capture logs from your browser. The two most basic types of logs to capture are console logs and network logs (HAR files). These logs are available in your browser's developer tools, the exact location of which depends on your browser:
Console Logs
Capture logs from your browser console:
In your browser's developer tools, navigate to the Console.
Before starting to reproduce the issue, clear the logs.
In the console settings (usually a βοΈ icon), turn on the option to preserve logs.
When you are done capturing the issue, right click on the logs and save them as a file.
Network Logs
Capture your browser's network logs:
In your browser's developer tools, navigate to Network.
Before starting to reproduce the issue, clear the logs.
In the settings, turn on the option to preserve logs.
When you are done capturing the issue, right click on the logs and save them all as HAR.
#TestlioBot