In this tutorial, we are going to see a selenium full tutorial for beginners and professionals. This tutorial provides you with basic and advanced concepts of Selenium using python programming. As we know, Selenium is one of the most widely used open source Web UI (User Interface) automation testing suites nowadays.
This tutorial will focus on important concepts of selenium that you must know and we are not going to tell you more theory about selenium. So Without wasting any time let’s start this tutorial.
What is Selenium?
Selenium is an open-source automated testing framework that is used for the Web UI (User Interface) automation testing suite. Selenium was developed by Jason Huggins in 2004 as an internal tool at Thought Works. You can use many programming languages to create Selenium Test Scripts and selenium can be deployed on many platforms like Windows, Linux, Macintosh, and Solaris. With the help of Selenium, we can do software testing or even web testing, Selenium’s job is to automate the browser and with the help of this we can do tests.
Selenium can be used to automate purposeful exams and may be integrated with automation take a look at tools along with maven, Jenkins, & docker to gain continuous checking out. It could additionally be integrated with gear inclusive of testing, & JUnit for handling taking a look at cases and producing reviews.
Selenium Features:
It is an open-source framework.
Selenium is a portable Web testing framework.
It supports multiple programming languages, browsers, and operating systems.
It can be integrated with Maven, Jenkins, Docker, and DevOps.
Selenium also supports parallel test execution.
Selenium Major Components:
WebDriver
Selenium Integrated Development Environment (IDE)
Selenium Grid
Selenium Remote Control (RC)
The following programming languages are supported by Selenium WebDriver:
Python
Java
C#
.Net
Ruby
Perl
PHP
1.1 Selenium integrated improvement environment (ide)
Selenium IDE is implemented as a firefox extension that affords report Python, C#, HTML, java, ruby, RSpec, JUnit, and testing. You may use that exported script in selenium RC or web driver.
1.2 Selenium Remote Control
Selenium RC (officially deprecated via way of means of selenium)lets testers put in writing computerized net software UI checks in any of the supported programming languages. It additionally entails an HTTP proxy server which allows the browser to consider that the net software being examined comes from the area supplied via way of means proxy server.
1.3 Selenium web driver
Selenium web driver (selenium 2) is the successor to Selenium RC and is in a way the most vital factor of the selenium suite. Seleniumwebdriverprovides a programming interface to create and execute take a look at cases. Check scripts are written if you want to identify internet elements on web pages and then desired movements are performed on the one’s elements. Selenium web driver plays a whole lot faster in comparison to selenium RC because it makes direct calls to the net browsers. Rc alternatively desires an RC server to interact with the web browser. Considering, that the web driver immediately calls the methods of various browsers as a result we have a separate driver for every browser.
Multiple Browsers supported by Selenium Webdriver:
Google Chrome Driver
Safari Driver
Mozilla Firefox Driver (Gecko Driver)
Opera Driver
Internet Explorer Driver
1.4 Selenium grid
Selenium grid is also a critical aspect of the selenium suite which lets us run our tests on specific machines against specific browsers in parallel. In easy phrases, we can run our assessments concurrently on exclusive machines going for walks with specific browsers and operating systems. Selenium grid follows the hub-node architecture to obtain parallel execution of take a look at scripts. The hub is taken into consideration as the master of the network and the opposite may be the nodes. Hub controls the execution of check scripts on various nodes of the network.
Now in the next article, we have covered how to install selenium python or installation of Selenium Webdriver