Q1.What is Selenium and what are its components?
Selenium is an open-source browser automation framework used for testing web applications across different browsers and platforms. Its components include: Selenium WebDriver (direct browser automation API), Selenium IDE (record-and-playback browser extension), Selenium Grid (distributed test execution across multiple machines), and the now-deprecated Selenium RC. WebDriver is the primary component used today, as it communicates directly with the browser using the browser's native automation engine rather than injecting JavaScript. Selenium supports Chrome, Firefox, Edge, Safari, and Opera, and offers bindings for Java, Python, C#, JavaScript, Ruby, and Kotlin.