Author - StudySection Post Views - 253 views
WebDriver

Selenium Basic Overview

selenium

About Selenium WebDriver

Selenium WebDriver is a free (open-source) tool that is used for test automation. It is licensed under Apache License 2.0. Selenium is a suite of tools that helps in automating only web applications.

Required

Before proceeding, we should have a basic knowledge of Java or any other object-oriented programming language and we should be accomplished with the basics of testing concepts.

Selenium

Selenium is a free (open-source) and portable automated software testing tool for testing web applications. It has the capabilities to operate across different browsers and operating systems. Selenium is not just a single tool but a set of tools that helps testers to automate web-based applications more efficiently.

Various Selenium tools are:-

  1. Selenium IDE
  2. Selenium RC
  3. Selenium WebDriver
  4. Selenium Grid

Merits of Selenium:-

  • It is an open-source tool.
  • Selenium supports various browsers.
  • It supports various operating Environments like ( MS Windows, Linux )
  • It Supports mobile devices.
  • It supports various programming languages to write a Test script
  • It supports parallel test Execution.

Demerits of Selenium:-

  • It supports only web-based applications.
  • Difficult to set up the environment.
  • New features may not work properly.
  • No default test report generation.
  • No reliable technical support from anybody.

IDE

It is a record and plays the editor of selenium that is used to record complete applications from starting point to ending point. Selenium IDE provides better performance and scalability to perform automation testing. It uses JavaScript internally to record the operation of an application.

Selenium RC

Selenium Remote Control was the main Selenium project that sustained for a long time before Selenium WebDriver (Selenium 2.0) came into existence. Selenium (RC) is hardly in use as WebDriver offers more powerful features, although, users can still continue to develop scripts by RC. It allows us to write automated web application UI tests with the help of programming languages such as Java, C#, Python, and PHP to create more complex tests such as reading and writing files, querying a database, and emailing test results.

RC Architecture

Selenium RC works in such the simplest way that the client libraries can communicate with the Selenium RC Server passing each Selenium command for execution. Then the server passes the Selenium command to the browser using Selenium-Core JavaScript commands. The browser executes the Selenium command using its JavaScript interpreter.

selenium1

Selenium RC comes in two parts.

  • The Selenium Server launches and kills browsers. additionally, it interprets and executes the Selenese commands. It also acts as an HTTP proxy by intercepting and verifying HTTP messages passed between the browser and also the application under test.
  • Client libraries that provide an interface between every one of the programming languages like (Java, C#, Python, and PHP) and Selenium-RC Server.

WebDriver

The Selenium WebDriver proves itself to be dominant over both Selenium IDE and Selenium RC in many facets. It can implement a more modern and steady approach in automating the browser’s actions. It does not depend on JavaScript for automation, but it controls the browser by directly communicating with it. It also supports the same languages as Selenium RC like Java, C#, Python, Ruby, and PHP.

Grid

Selenium Grid is a part of the selenium suite that distributes the tests across multiple physical or virtual machines so that we can execute scripts in parallel (simultaneously). It dramatically accelerates the testing process across browsers and across platforms by giving us quick and accurate feedback. Selenium Grid allows us to execute multiple examples of WebDriver for Selenium Remote Control tests in parallel which uses the same code base, hence the code needs NOT to be present on the system they execute. The selenium-server standalone package includes Hub, WebDriver, and Selenium RC to execute the scripts in the grid.

Selenium Grid has a Hub and a Node.

  • Hub – The hub can also be understood as a server that acts as the central point where the tests would be triggered. A Selenium Grid has only one Hub and it is launched on a single machine one time.
  • Node – Nodes are the Selenium examples that are attached to the Hub which execute the tests. There can be one or more nodes in a grid that can be of any Operating System and can contain any of the Selenium supported browsers.

The English language is the most widely used language as a medium of communication around the world. Having a certification for the English language can be an advantage. StudySection provides an English Certification Exam that tests English language proficiency in English grammar, reading, and writing.

Leave a Reply

Your email address will not be published. Required fields are marked *

fiteesports.com rivierarw.com cratosroyalbet betwoon grandpashabet grandpashabet giriş deneme bonusu veren siteler casino siteleri