Giter Site home page Giter Site logo

selenium-tutorials-java's Introduction

Selenium Tutorials with JAVA

Table of Contents

  1. Overview

  2. Getting Started

  3. Built With

  4. Installation Steps

  5. Step Wise Details

  6. Acknowledgments

  7. Contact

Overview

This repository serves as a comprehensive guide to working with Selenium WebDriver using Java. Whether you're a beginner looking to get started with Selenium for automated testing or an experienced developer seeking advanced browser handling techniques, this repository has something for everyone.

Getting Started

Follow these steps to set up your development environment and start using Selenium with Java

Prerequisites

  1. Java JDK
  2. Choose one of the following IDE:
  3. Apache Maven

Installation

  1. Java JDK
  2. IDE
    • Download and install your preferred IDE.
  3. Apache Maven
    • Download Apache Maven from the official website.
    • Follow installation instructions.

Setting Up Java JDK

  1. Download the JDK installer from Oracle.
  2. Run the installer and select your installation folder.
  3. Set up JAVA_HOME and PATH environment variables: - Open System Properties. - Navigate to Environment Variables. - Add JAVA_HOME with the JDK installation path. - Update the PATH variable to include %JAVA_HOME%\bin.
  4. Verify Java installation by running java --version in a terminal.

Setting Up Spring Tools

  1. Download Spring Tools from the official website.
  2. Run the installer and select the package to install.
  3. Choose your installation folder and complete the setup.
  4. Launch Spring Tools to start using it.

Installing Apache Maven

  1. Check if you have Java installed by running java --version.
  2. Download Apache Maven from the official website.
  3. Extract the archive to your desired location.
  4. Set up M2_HOME and MAVEN_HOME environment variables:
    • Create M2_HOME and point it to the Maven installation directory.
    • Update the PATH variable to include %M2_HOME%\bin.
  5. Verify Maven installation by running mvn --version in a terminal.

Built With

  1. Java JDK - Java Development Kit
  2. Spring Tools - IDE for Spring applications
  3. Apache Maven - Dependency Management

Installation Steps

To start using the framework:

  1. Fork the repository.
  2. Clone, i.e, download your copy of the repository to your local machine using
git clone https://github.com/ebrahimhossaincse/Selenium-Tutorials-Java.git
  1. Import the project into your preferred IDE (Eclipse, IntelliJ IDEA, or Spring Tools).
  2. Make any desired changes or additions to the project.
Maven Dependencies
Selenium TestNG Webdriver Manager
<dependencies>
		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-java</artifactId>
			<version>4.13.0</version>
		</dependency>
		<!--
		https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
		<dependency>
			<groupId>io.github.bonigarcia</groupId>
			<artifactId>webdrivermanager</artifactId>
			<version>5.5.3</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.testng/testng -->
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>7.8.0</version>
			<scope>test</scope>
		</dependency>
		
	</dependencies>

Step Wise Details

00 - Launching Browsers

01 - Launching Browsers In Headless Mode

02 - Locators in Selenium

03 - WebDriver Browser Commands

04 - WebDriver Navigation Commands

05 - Waits in Selenium

06 - Automate Radio Button in Selenium

07 - Automate Checkbox in Selenium

08 - DropDown in Selenium

09 - Alerts in Selenium

10 - Form WebElement Commands

11 - Mouse Events In Selenium

12 - Keyboard Events In Selenium

13 - Browser Tab

14 - Browser Window

15 - Frame In Selenium

16 - Assertion

17 - Web Table

18 - Scroll In Selenium

Acknowledgments

Special thanks to the contributors and the Selenium community for their valuable resources and tutorials.

Contact

For questions or feedback, please feel free to reach out:

  1. Maintainer: Md. Ebrahim Hossain
  2. Project Link:Selenium-Tutorials-Java
  3. Facebook: Md. Ebrahim Hossain
  4. Linkedin: Md. Ebrahim Hossain
  5. Stack Overflow: Md. Ebrahim Hossain
  6. Medium: Md. Ebrahim Hossain

selenium-tutorials-java's People

Contributors

ebrahimhossaincse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.