This project demonstrates data extraction from an HTML table on the W3Schools website using Selenium WebDriver. The script automates the process of retrieving company, contact, and country information from the given table, showcasing how to interact with and parse web elements programmatically.
- Automates navigation to the W3Schools HTML table page.
- Scrolls to the target table for visibility.
- Extracts the following columns from the HTML table:
- Company
- Contact
- Country
- Displays the extracted data in the console in a structured format.
- Handles table rows dynamically, skipping headers to focus on content rows.
Ensure you have the following before running the project:
- Java Development Kit (JDK) - Version 8 or above.
- Google Chrome - Latest stable version.
- ChromeDriver - Version compatible with your Chrome browser.
- Selenium WebDriver - Included in the project dependencies.
- Java - The programming language for the project.
- Selenium WebDriver - For web element interaction and automation.
- Google Chrome & ChromeDriver - For browser-based automation.
- JavaScript Executor - For smooth scrolling to the table.