Session Objectives :

  1. Installation of Selenium WebDriver

1. Install Java and Spring Tool Suite (STS)

Step 1: Install Java

Ensure that you have the Java Development Kit (JDK) installed. You can download it from Oracle's official website or use OpenJDK.

To verify your installation, open a terminal (Command Prompt or terminal on macOS/Linux) and type:

bash
Copy code
java -version

If Java is installed, it will display the Java version. If not, install it.

Step 2: Install Spring Tool Suite (STS)

If you haven’t installed Spring Tool Suite (STS), download it from Spring Tool Suite website. Spring Tool Suite is an IDE optimized for Spring development, but you can also use it for any Java project, including Selenium automation.


2. Set Up Selenium WebDriver in STS

Step 1: Create a New Spring Project (or Java Project)

  1. Open Spring Tool Suite.
  2. Click on File → New → Spring Starter Project or Java Project.Example: Create a Java Project called SeleniumTestProject.

Step 2: Add Selenium Dependency (If using Maven)