Code for selenium

Installing Selenium from scratch involves setting up the Java environment, installing the Eclipse IDE, and finally configuring the Selenium libraries. As of 2026, Selenium 4 is the industry standard. Below is the step-by-step guide to get you up and running. Phase 1: Install Java (JDK) Selenium is a Java-based library, so you must have the Java Development Kit (JDK) installed. Download: Go to the Oracle JDK Downloads or Adoptium (OpenJDK). Download the latest LTS version (e.g., JDK 21 or 25). Install: Run the installer and follow the prompts. Set Environment Variables (Windows): Search for "Edit the system environment variables" in your Start menu. Click Environment Variables. Under System Variables, click New and add JAVA_HOME with the path to your JDK folder (e.g., C:\Program Files\Java\jdk-21). Find the Path variable, click Edit, and add %JAVA_HOME%\bin. Verify: Open Command Prompt and type java -version. You should see the version details. Phase 2: Install Eclipse IDE Dow...

Java programming practical

practical (1)

Aim:-Write a program to create a class and implement a default, overloaded any copy constructor

here is code:-



practical 1(B)

Aim:-write a program to create a class and implement the concepts of method overloading

here is the code:-



practical 1 (c)

Aim:-write a program to create a class and implement the concepts of static method

here is the code:-



practical  2(A)

Aim:-   Write a program to create a class and implement concept of Inheritance and method overloading 

here is the code:-


practical 2(B)

Aim:-write a program to implement the concepts of Abstract classes and methods.

here is the code:-



practical 2(C)

Aim:-write a program to implement concept of Interfaces

Here is the code:-


practical 3(a)

Aim:-  Write a program to re-use built-in exception and raise them as per the requirement.

Here is the code:-


practical 3(B)

Aim:-Write a program to define exception and raise them as per the requirement

Here is the code:-


practical 4

Aim:-Write a java application to demonstrate 5 bouncing balls of different colors using thread

Here is the code:-


practical 6(A)

Aim:- Create a swing application that randomly changes color an button click

Here is the code:-


Practical 6(c)

Aim:-  Create a swing application that randomly demonstrate use of scroll pane to change its color selected using color chooser

here is the code:-



practical 7(A)

Aim:-Flow Layout

here is the code:-

practical 7(B)

Aim:-Grid Layout

Here is the code:-


practical 7(c)

Aim:-BORDER LAYOUT

here is the code:-

Practical 8

Write a program to demonstrate the following events.

(A)

Aim:-Action Event

Here is the code:-

(B)

Aim:-Mouse Event

Here is the code:-

(C)

Aim:-Key Event

here is the code:-


Practical 9

Aim:-Demonstrate the use of adapter class in Event Handling 

Here is the code:-

Practical 10


Aim:-Demonstrate the use of Anonymous Adapter class in event Handling

here is the code:-



Comments

Popular posts from this blog

ES practical syit sem 4

TYBSc IT Semester 6 Information Security Practicals

Master Linux Practical for B.Sc. IT Semester 5: Download pdf and the Comprehensive Guide

Introduction to computer system

Advanced Web Designing (AWD) Practical Guide for B.Sc. IT 5th Semester

CGA practical