Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.46 KB

File metadata and controls

25 lines (21 loc) · 1.46 KB

Switch Window and Scroll Automation Script

Description

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.

Features

  • 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.

Prerequisites

To run this project, ensure the following are installed and configured:

  1. Java Development Kit (JDK): Version 8 or higher.
  2. Selenium WebDriver: Version 4.25.0 or higher.
  3. ChromeDriver: Compatible version matching your installed Chrome browser.
  4. IDE: IntelliJ IDEA, Eclipse, or any other Java IDE for running the code.
  5. Browser: Google Chrome for executing the automated tests.

Technologies Used

  • 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.