This project demonstrates the use of Selenium WebDriver to automate switching between browser windows and performing scrolling actions using JavaScript Executor. The script opens a new browser window, switches to it, performs scrolling operations, and then returns to the main window, ensuring clean and efficient automation of window handling.
- Automates window switching between the main and new browser windows.
- Maximizes the newly opened window for better visibility.
- Implements smooth scroll-down and scroll-up actions using JavaScript Executor.
- Waits between operations to simulate real user interactions.
- Ensures all browser windows are properly handled and closed after execution.
To run this project, ensure the following are installed and configured:
- Java Development Kit (JDK): Version 8 or higher.
- Selenium WebDriver: Version 4.25.0 or higher.
- ChromeDriver: Compatible version matching your installed Chrome browser.
- IDE: IntelliJ IDEA, Eclipse, or any other Java IDE for running the code.
- Browser: Google Chrome for executing the automated tests.
- Java: Programming language used for writing the script.
- Selenium WebDriver: Automation tool for browser interactions.
- ChromeDriver: WebDriver for controlling Google Chrome.
- JavaScript Executor: For performing scroll actions on web pages.