EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Selenium Tutorial

Home » Software Development » Software Development Tutorials » Selenium Tutorial

Basics

What is Selenium?

Uses of Selenium

Career in Selenium

Selenium Software

Selenium Architecture

Components of Selenium

How to Install Selenium

Install Selenium IDE

Selenium Framework

Selenium Commands

How to Use Selenium?

Selenium Testing

Selenium Automation Testing

Selenium Load Testing

Selenium Grid

What is Selenium Web Driver?

Selenium Webdriver Commands

What is XPath in Selenium?

Assertions in Selenium

Selenium Tools

Selenium IDE Commands

selenium find element

selenium javascriptexecutor

selenium maven dependency

Selenium Refresh Page

Selenium Exceptions

Selenium UI Testing

Selenium Get Attribute

Selenium User-Agent

Selenium with TestNG

Selenium Keys

Selenium Tutorial

Selenium is one of the most popular, open-source tools used for automation testing. It was developed by Jason Huggins in 2004 as an internal tool. It provides various special features and supports multiple browsers like Chrome, Mozilla, IE using the specific drivers. Moreover working on Selenium is not confined to one language, which means Selenium supports multiple languages like C#, Java, Python, Ruby, etc. Selenium is much more than a tool having different components for automating a web application. Components in Selenium are Selenium Remote Control (RC), Selenium Integration Development Environment (IDE), Selenium Grid Webdriver. It is written in Java language having its latest version 3.11.0.

Why do we need to learn Selenium?

Testing any software application repeatedly and though manually is a tedious and inefficient task. Looking into these disadvantages, automation testing came into the picture where test scripts can be written once and are automatically executed any number of times and when required. Selenium is one of the easy to learn tool to start working with automation testing. Moreover, Selenium has wide support for extensions and provides an amazing way of reporting the test results. It provides amazing support for different OS like Windows, Android, iOS, etc and can be deployed on various platforms like Windows, Linux, Solaris, etc which makes it more trending to use as an automation tool.

Applications of Selenium

Selenium is basically used for automating the test cases be it regression testing, functional testing or webUI testing which was a headache before running them manually. It helps in reducing the testing time and increasing efficiency. As Selenium is an open-source tool, it is free to use so no extra cost is burdened on business. In fact, it helps in reducing the overall business cost by reducing the human resources deployed in running the test cases manually. Apart from normal regression and webUI testing, Selenium also supports Performance testing through the automation framework. It provides excellent support to integrate with advanced tools like Docker, Jenkins, Maven which helps the tester to easily work in an integrated environment.

Example

Below given is a short example of writing a simple code of entering the values in the text box using Selenium in Java language.

WebDriver driver = new FirefoxDriver();
String url = “https://www.educba.com/signup/”;
driver.get (url);
WebElement email = driver.findElement(By.id(“email”));
WebElement pass = driver.findElement(By.id(“password”));
email.sendKeys(“rakesh.goyal@edu.com”);
pass.sendKeys(“eduedu”);
driver.findElement(By.id(“Login”)).submit();
driver.close();

In the above code, we are using the Java language to enter the values of email and password and submitting those values by clicking on the Login button.

Prerequisites

To start learning the Selenium, one should have a basic understanding of any Object Oriented programming languages like Java, C#, etc. As Selenium supports multiple languages, having an understanding of basic programming concepts is enough to start learning Selenium. Moreover, one should know about testing techniques like Functional testing, webUI testing, Regression testing, etc.

Target Audience

Programmers having knowledge of object-oriented programming language find it easy to start creating the test scripts in Selenium IDE. Though we have designed our tutorial in such a way to make it easy to learn for both beginners and advanced level programmers.

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Special Offer - All in One Software Development Bundle (600+ Courses, 50+ projects) Learn More