You are on page 1of 6

Joyal Georgi

TYCS A (8845)
Practical 4

Aim: Install Selenium server (Selenium RC) and demonstrate it using a script in Java.

Steps:

1. Selenium Server Download > ChromeDriver > Downloads > Select the version for
Win 32
Joyal Georgi
TYCS A (8845)

2. Extract all files in this way


Joyal Georgi
TYCS A (8845)

3. Open eclipse and open a project > Build path > Configure Build Path

4. Libraries > Select Selenium Server jar file > Apply and close
Joyal Georgi
TYCS A (8845)

5. Libraries > Add Library > Select Workspace default jre


Joyal Georgi
TYCS A (8845)

Code:
selenium.java
package Kaifia;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class selenium {


public static void main(String[] args) {
int a=4,b=5;
System.out.println("Hello");
System.out.println(a+b);
WebDriver driver= new ChromeDriver();
driver.get("https://www.google.com");
driver.close();

Output:
Joyal Georgi
TYCS A (8845)

You might also like