{"repo":"im-ahmed-hasan/selenium-cdp-automation","free":true,"listed":false,"github":"https://github.com/im-ahmed-hasan/selenium-cdp-automation","clone":"git clone https://github.com/im-ahmed-hasan/selenium-cdp-automation.git","description":"Capture Chrome Console Logs via CDP using Selenium 4.34.0 in Java. Lightweight example to monitor browser logs (info, warnings, errors) using Chrome DevTools Protocol.","language":"Java","stars":15,"topics":["cdp","ci-cd","devtoo","java","qa","sdet","selenium","selenium-webdriver","techskills","testng-framework"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"CDP Console Log Capture with Selenium 4.34.0 A minimal Java example demonstrating how to capture browser console logs using Chrome DevTools Protocol (CDP) with Selenium 4.34.0 and ChromeDriver. --- 🔍 Overview This project uses Chrome DevTools Protocol (CDP) to tap into the browser’s internal console and listen for JavaScript log events like console.log , console.error and more — all through Selenium 4.34.0 . Created by Ahmed Hasan , 2025. --- 📦 Tech Stack - Java 22+ - Selenium 4.34.0 - ChromeDriver (auto-resolved by Selenium Manager) - Chrome 138 or later --- 🚀 How It Works - Starts a ChromeDriver session - Attaches a CDP DevTools session - Enables log capture via Log.enable() - Listens for and prints browser console log entries --- 🛠️ Setup Instructions 1. Clone the Repo bash git clone https://github.com/im-ahmed-hasan/selenium-cdp-automation.git cd cdp-console-log-capture","default_branch":null,"files":null,"tree":[],"storefront":"/r/im-ahmed-hasan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/im-ahmed-hasan/selenium-cdp-automation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}