0% found this document useful (0 votes)
21 views

Selenium Section1,2

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Selenium Section1,2

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Selenium Features

 Selenium is open Source Automation Testing tool

 It is exclusively for Web Based applications.

 Selenium supports multiple browsers -


Chrome, Firefox, Internet Explorer, Safari

 Selenium works with Multiple Platforms


Windows, Apple OS X, Linux

 Selenium can be coded in multiple languages -


Java, C#, Python, Javascript, Python, php,Ruby
Selenium WebDriver Architectue Simplified:

 After you trigger the Test, complete Selenium code (Client) which we
have written will be converted to Json format
 Generated Json is sent to Browser Driver (Server) through http Protocol
Note: Each browser contains a separate browser driver
 . Browser drivers communicate with its respective browser and executes
the commands by interpreting Json which It received on the browser.
 Browser Driver receives responses back from the browser and it sends
Json response back to Client.

5 Step by Step Instructions to setup Selenium first program

Java
Java – download jdk , set Path to jdk/bin in SystemVariables

Eclipse
Eclipse – for developer download

Selenium
Download these jars and place in project or use the 4 lines of code in above screenshot under Maven
tab(real time)

To add Maven Code:


Convert project to Maven in Eclipe
Incase after adding dependencies, jars are not visible, do below. Usually happens when we update
pom.xml
Understand creation of WebDriver object and its classes
By giving WebDriver driver instead of ChromeDriver driver - while creating object, we can restrict the
driver object to access WebDriver defined methods avoiding the access of ChromeDriver’s own class
methods

To launch chrome browser:

Selenium cant be able to access browser directly as in architechture, it has to go through


corresponding browser driver
Based on chrome browser version, download corresponding file

Chrome – chromedriver.exe
Firefox – gechodriver
MicrosoftEdge

Select version based on browser version

You might also like