Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.18 KB

File metadata and controls

23 lines (19 loc) · 1.18 KB

SwitchTab-Testing-Script

Description

The SwitchTab-Testing-Script demonstrates the automation of browser tab switching and interaction using Selenium WebDriver in Java. This script opens a new browser tab, performs scrolling actions on the newly opened tab, switches back to the original tab, and revisits the opened tab before closing it. The code ensures seamless tab management and showcases the use of Selenium's window handling capabilities.

Features

  • Open a new tab and perform automated actions (e.g., scrolling).
  • Seamlessly switch between the main tab and the newly opened tab.
  • Close the newly opened tab without affecting the main tab.
  • Employ JavaScript Executor for smooth scrolling actions on the page.

Prerequisites

  • Java Development Kit (JDK) 8 or above.
  • Selenium WebDriver (version 4.25.0 or later).
  • Google Chrome browser installed on the system.
  • ChromeDriver executable compatible with the installed version of Chrome.
  • Integrated Development Environment (IDE) like Eclipse or IntelliJ IDEA.

Technologies Used

  • Programming Language: Java
  • Automation Tool: Selenium WebDriver 4.25.0
  • Browser: Google Chrome
  • Execution Engine: ChromeDriver