SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1920
Intelligent Testing Tool: Selenium Web Driver
Renu Patil1, Rohini Temkar2
1 Student, Dept. of MCA, VES's Institute of Technology, Maharashtra, India
2Assistant Professor, Dept. of MCA, VES's Institute of Technology, Maharashtra, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Testing in Software developmentprocessisthe
most costly and tedious process for QA Testers. As the need
of Web applications are growing testing has to grow
tremendously to test GUI of these web application hence the
automation becomes challenging because of its dynamically
changing nature. Numerous automation testing has been
done since decade yet they result into halfway automated or
need more tester inclusion. Hence tool for testing needs to
be invented which has the ability to enhance the testing
performance and its competences as well. In this paper we
will discuss the new automation testing tool Selenium web
driver. Selenium web driver is open source software
available for different windows and different web browser.
Key Words: Automation Testing, Manual Testing,
Selenium Web Driver
1. INTRODUCTION
Software testing is a procedure of executing a program or
application with the purpose of finding the productbugs.It’s
the process of validating and verifying all the components of
a system and also checking it satisfies specified
requirements and achieving the expected quality [1].
Manual testing is the process of manually testing software
for finding bugs this testing is performed without using any
testing tool it requires a tester to play the role of an end user
and verifies all the correct behaviorofsoftwarecomponents.
But this testing is not effective for large projects as it
requires more resources and time [1].
Automated testing is a process in which tool is used to
execute the pre-defined scripts and finding the defects.
Automation testing improves the accuracy, saves the tester
time and resources. It is suitable for large projects and best
in the repeatedly changingenvironmentwherehugeamount
of regression testing is required to be performed it also
increases the effectiveness and efficiency of softwaretesting
[1].
In this paper we have discussed one of the intelligent
automated testing tool Selenium Web Driver is the object
oriented API and newest addition to the selenium toolkit
This tool provides all kind of phenomenal features and
helped to overcome all the limitations of the old
implementation.
Two common methodologies for test automation:
Code-Driven testing.
The interfaces to classes, modules or libraries are tested
with multiple and variety of input argumentstovalidatethat
the results that are returned are precise [2].
Graphical User Interface testing (GUI).
A testing system that creates UI events, for example,
keystrokes and mouse clicks and sees the varieties that
outcome in the UI, to approve that the recognizable conduct
of the program is exact [2].
1.1 Test Automation
Test automation is the use of special software which
automates the repetitive and necessarytask andcontrolsthe
execution of tests comparingactual resultswiththeexpected
results or perform additional testing that would be difficult
to do manually. Many test automation tools give record and
playback features enabling clients to intelligently record
activities and replay them back to many times advantage of
this tool is that it needs no coding or improvement of the
software. However this methodology has several
disadvantages as tests need to be re-recorded evenforsmall
changes in the applicationlikemoving thecontrolsrenaming
the controls. Record and playback also frequently adds
indecorous activities or erroneously records some activities
[2].
There are many advantages of test automation with respect
to execution time, speed of test execution, repeatability of
the tests, less human intervention. There are a number of
feasible and open source tools available for test automation
and selenium is one of the most widely used open source
tool [2].
Test automation has many advantages some of these are:
• Repeated regression testing
• Quick feedback to the developers
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1921
• Indefinite repetitions of test case execution
• Support for the development methodologies
• Agile and extreme development
• Orderly documentation of test cases
• Customized reporting of the defects
• Finding defects missed during manual testing
1.2 Selenium
Selenium is an open source automation testing tool which is
used to test the web application across different platforms.
Selenium uses test scripts to execute the test cases within
the browser. It uses iframes and Java Scripts to embed the
test automation engine into the browser. This helps to run
and test same test scripts on multiple browsers on multiple
platforms. Selenium is basically used for functional
regression testing [2]. Selenium is a suit of components each
has its own testing purpose and these components are:
Selenium IDE, Selenium Remote Control, Selenium Web
Driver, and Selenium Grid [5].
Selenium components:
Selenium Integrated Development Environment (IDE)
Selenium Remote Control
Web Driver
Selenium Grid
Selenium Integrated Development Environment (IDE)
Selenium Integrated Development Environment is a Firefox
plugin that allow testers to record their actions. Selenium
IDE has a recording feature, which records user actions and
then exports them as a reusable scripts in one of the
supported programming languages that can be later
executed. As it only supports Firefox browser hence all the
user actions are recorded using a Graphical User Interface
with Firefox browser. These recorded actions thenexported
to various programming languages supported by selenium
and then executed on many browsers [5].
Selenium Remote Control
Selenium RC is the first automated web testing tool that
allow users to write web application UI test in multiple
programming languages. In selenium RC selenium opens
multiple browsers at the same time and then runs the saved
test-cases concurrently. Selenium RC not limitedtoselective
browsers it supports many new browsers hence user can
run many test-cases with own preferred language this helps
in enhancing the performance of test-cases covering all the
test scenarios and checks. Selenium RC Use many
programming languages like Java, C#, PHP, Python, Perl,
Ruby to create complex tests [5].
Selenium Web Driver
Selenium Web Driver is an automation framework tool that
supports multiple browsers and Ajax applications and
implements a more modern and stable approach in
automating the browser’s actions. Selenium web driver is
also known as selenium 2.0. It controls the browser by
directly communicating with it thereby controlling it from
the OS level. Selenium web driver supports multiple
Programming languagesto writethetestscriptssuchasJava,
C#, PHP, Python, Perl, Java [3]. Web Driver has a good
control on dynamic web pages where the elements of a web
pages change without the page itself being reloaded [5].
Selenium Grid
Selenium Grid is a tool used to run parallel tests across
multiple machines on different browsers simultaneously
which results in saved execution time. Selenium Grid uses
hub and nodes concept where hub acts as a central point of
selenium commands to each node connected to it. Selenium
Grid has only one hub and nodes are instances that are
attached to the hub which executes the tests [5].
2. SELENIUM WEB DRIVER: TESTING TOOL
Web Driver drives the web browser, controls the browser
action and uses the browser’s own engine to control it. Web
driver works with web elements of a web page. Initially it
locates the web elements on the web page and then
performs some action on it. It communicates with all page
elements in a more realistic way [3].
Locators in Web Driver
In Web Driver automation everything is identified with web
components as it is a web application automation tool. Web
Components are DOM Objects exhibit on the Web Page. To
perform operations on a Web Element we have to find the
Elements precisely [3].
As in the above articulation we need to determine some
locator to distinguish web component. "By" is the class, in
the class we have distinctive static techniques to recognize
components as beneath
1. id
2. name
3. className
4. tagName
5. cssSelector
6. xpath
7. linkText
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1922
8. partialLinkText
 By.id – Use “id” attribute to locate the
element.
 By.name - Use “name” attribute to locate
the element.
 By.className - Use “class” attribute to
locate the element.
 By.tagName - locates elementsbytheirtag
name
 By.cssSelector - finds elements based on
the driver’s underlyingCSSSelectorengine.
 By.xpath - locates elements via xpath.
 By.linkText - finds a link element by the
exact text it displays.
 By.partialLinkText -locateselementsthat
contain the given link text.
Synchronization in Web Driver
Web Driver has two types of waits –
• Implicit Wait – Is utilized to set the default holding up time
all through the program. This hold up is less complex to
code.
• Explicit Wait – Is utilized to set the waiting time for a
specific instance only.
Windows Handling in Web Driver
There are Two kinds of windows which we can handle using
Web Driver –
1) HTML Windows
2) Pop-Ups/Alerts
HTML Windows
Many Web Applications has different windows. Web Driver
manages moving between named windows using the
“switchto()” method.
Alerts
Alerts can be handled using four methods –
 accept () – this method is used to accept and close
the alert box.
 dismiss() – this method is used to reject and close
the alert box.
 gettext()– this method is used to retrieve the
message of the alert box.
 sendKeys() To write some text to the alert
Programming using Web Driver
Web Driver handles Keyboard operations and Mouse Event
operations. It contains the Actions classes that are required
when executing these events [6].
Below are the most commonly used keyboard and mouse
events provided by the Actions Class
Method Description
clickAndHold() It performs Click operation
without discharging at the
present mouse region
contextClick() Performs a context-click at
the current mouse area.
doubleClick() Performs a double click at
the current mouse area.
dragAndDrop(source,
target)
It Performs click and hold
operation at the region of
the source control, at that
point moves to the region
of the target control, at that
point discharges the mouse
dragAndDropBy(source,
x-offset, y-offset)
Performs click-and-hold at
the area of the source
element, moves to a given
offset, and then releases
the mouse.
keyUp(modifier _key) Does a key release.
moveByOffset(x-offset, y-
offset)
It performs Moving
operation on mouse from
its present position to the
provided offset.
release() Releases the pressed left
mouse button at the
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1923
present mouse location
sendKeys(onElement,
charsequence)
Sends a sequence of
keystrokes onto the
element.
Limitations
However, despite all advantages of selenium web driver, it
has some limitations. Selenium web driver has no built in
report generation functionality. Selenium web driver hasno
built in screenshot generation functionality. It is dependent
on the third party tool for report and screenshot generation
[4].
3. FUTURE WORK
There is scope of running scripts at the background without
disturbing the foreground processes so testercanwork with
different task along with running the test scripts at the
background. It will help in reducing the execution time by
executing the test cases concurrently in multiple browsers
on multiple machines at the background what we needto do
is to implement the code that will support the Multithread
concept and minimizing the browser and run at the
background. The future Implementation picture looks like
figure 1
Fig -1: Execution Time
4. CONCLUSION
Selenium Web Driver is a tool forin-WebApplicationtesting,
begun by just contemplation and now it is being utilized
effectively by both the engineers and clients. The most
essential highlight of this tool is that it additionally
encourages the testing of web applications alongside
enhancing testing speed and reducing execution time for
repetitive test cases. Selenium Web Driver is positively an
advantage for any individual who is hoping to include an
effective web testing tool to their toolbox.
5. REFERENCES
[1] Neha Bhateja, “A Study on Various SoftwareAutomation
Testing Tools “, ijarcsse Volume 5, Issue 6, June 2015.
[2] Himanshi, Nitin Umesh , Amar Saraswat ,” Automation
Testing: An Introduction to Selenium “, International
Journal of ComputerApplications(0975 – 8887)Volume
119 – No.3, June 2015.
[3] Purnima Bindal, Sonika Gupta, “Test Automation
Selenium WebDriver using TestNG”,
JECAS Volume 3, No.9, September 2014.
[4] Satish Gojare,Rahul Joshi,Dhanashree Gaigaware,”
Analysis and Design ofSeleniumWebDriverAutomation
Testing Framework “, 2nd International Symposium on
Big Data and Cloud Computing (ISBCC’15)
[5] Jagannatha ,Niranjanamurthy, Manushree ,Chaitra,”
Comparative Study on Automation Testing using
Selenium Testing Framework and QTP “, IJCSMC, Vol. 3,
Issue. 10, October 2014, pg.258 – 267
[6] http://www.guru99.com/selenium-tutorial.html

More Related Content

PDF
IRJET- Automatic Device Functional Testing
PDF
Ijetcas14 413
ODP
Selenium ppt
PDF
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
PDF
Automated Testing: An Edge Over Manual Software Testing
PPTX
The Amazing Bug Story
PDF
Top 10 Automation Testing Tools in 2020
PPT
Data driven automation testing of web applications using selenium
IRJET- Automatic Device Functional Testing
Ijetcas14 413
Selenium ppt
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
Automated Testing: An Edge Over Manual Software Testing
The Amazing Bug Story
Top 10 Automation Testing Tools in 2020
Data driven automation testing of web applications using selenium

What's hot (20)

PDF
Test Automation Frameworks Using Selenium | Edureka
PPTX
Real world selenium resume which gets more job interviews
PDF
Selenium and JMeter Testing
PDF
Selenium and JMeter
PDF
Open Source Software Testing Tools
PPTX
Selenium Test Automation
PDF
Application Testing Suite
PPTX
Selenium
PDF
Selenium - Introduction
DOCX
Ajit jadhav automation_qa_4_ yrs
PPTX
Selenium RC, Selenium WebDriver and HP LoadRunner
PDF
Selenium Automation Testing Interview Questions And Answers
DOC
Ashish Baraiya
PPTX
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
PPT
Testing soa, web services and application development framework applications
PPT
Hybrid framework
PPT
Test Automation Framework Development Introduction
PPS
Final Automation Testing
DOC
William Truong_updated
DOC
Hybrid framework for test automation
Test Automation Frameworks Using Selenium | Edureka
Real world selenium resume which gets more job interviews
Selenium and JMeter Testing
Selenium and JMeter
Open Source Software Testing Tools
Selenium Test Automation
Application Testing Suite
Selenium
Selenium - Introduction
Ajit jadhav automation_qa_4_ yrs
Selenium RC, Selenium WebDriver and HP LoadRunner
Selenium Automation Testing Interview Questions And Answers
Ashish Baraiya
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
Testing soa, web services and application development framework applications
Hybrid framework
Test Automation Framework Development Introduction
Final Automation Testing
William Truong_updated
Hybrid framework for test automation
Ad

Similar to Intelligent Testing Tool: Selenium Web Driver (20)

PPTX
A Simple Guide to Selenium Software Testing
PDF
Selenium Automation Testing - A Complete Guide
PDF
Selenium Automation Testing - A Complete Guide.pdf
PDF
Selenium Automation Testing - A Complete Guide.pdf
PPT
QSpiders - Automation using Selenium
PDF
Selenium -Test automation for web applications
PDF
An Overview of Selenium Grid and Its Benefits
PPTX
Test Automation Using Selenium
PPTX
Test automation using selenium
PDF
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
PPTX
What is Selenium Introduction to Selenium Testing.pptx
DOCX
What is selenium
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
PPTX
PPTX
Selenium
PPTX
Selenium.pptx
PPTX
Test Automation and Selenium
PPT
Selenium Concepts
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
PPTX
test-automation-selenium-160216124839.pptx
A Simple Guide to Selenium Software Testing
Selenium Automation Testing - A Complete Guide
Selenium Automation Testing - A Complete Guide.pdf
Selenium Automation Testing - A Complete Guide.pdf
QSpiders - Automation using Selenium
Selenium -Test automation for web applications
An Overview of Selenium Grid and Its Benefits
Test Automation Using Selenium
Test automation using selenium
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
What is Selenium Introduction to Selenium Testing.pptx
What is selenium
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
Selenium
Selenium.pptx
Test Automation and Selenium
Selenium Concepts
Selenium Testing The Complete Step-by-Step Tutorial.pdf
test-automation-selenium-160216124839.pptx
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
PPTX
“Next-Gen AI: Trends Reshaping Our World”
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
AgentX UiPath Community Webinar series - Delhi
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PDF
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
PDF
composite construction of structures.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
web development for engineering and engineering
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Queuing formulas to evaluate throughputs and servers
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
PPT
Project quality management in manufacturing
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
“Next-Gen AI: Trends Reshaping Our World”
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
AgentX UiPath Community Webinar series - Delhi
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
composite construction of structures.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
web development for engineering and engineering
CH1 Production IntroductoryConcepts.pptx
Queuing formulas to evaluate throughputs and servers
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Project quality management in manufacturing

Intelligent Testing Tool: Selenium Web Driver

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1920 Intelligent Testing Tool: Selenium Web Driver Renu Patil1, Rohini Temkar2 1 Student, Dept. of MCA, VES's Institute of Technology, Maharashtra, India 2Assistant Professor, Dept. of MCA, VES's Institute of Technology, Maharashtra, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Testing in Software developmentprocessisthe most costly and tedious process for QA Testers. As the need of Web applications are growing testing has to grow tremendously to test GUI of these web application hence the automation becomes challenging because of its dynamically changing nature. Numerous automation testing has been done since decade yet they result into halfway automated or need more tester inclusion. Hence tool for testing needs to be invented which has the ability to enhance the testing performance and its competences as well. In this paper we will discuss the new automation testing tool Selenium web driver. Selenium web driver is open source software available for different windows and different web browser. Key Words: Automation Testing, Manual Testing, Selenium Web Driver 1. INTRODUCTION Software testing is a procedure of executing a program or application with the purpose of finding the productbugs.It’s the process of validating and verifying all the components of a system and also checking it satisfies specified requirements and achieving the expected quality [1]. Manual testing is the process of manually testing software for finding bugs this testing is performed without using any testing tool it requires a tester to play the role of an end user and verifies all the correct behaviorofsoftwarecomponents. But this testing is not effective for large projects as it requires more resources and time [1]. Automated testing is a process in which tool is used to execute the pre-defined scripts and finding the defects. Automation testing improves the accuracy, saves the tester time and resources. It is suitable for large projects and best in the repeatedly changingenvironmentwherehugeamount of regression testing is required to be performed it also increases the effectiveness and efficiency of softwaretesting [1]. In this paper we have discussed one of the intelligent automated testing tool Selenium Web Driver is the object oriented API and newest addition to the selenium toolkit This tool provides all kind of phenomenal features and helped to overcome all the limitations of the old implementation. Two common methodologies for test automation: Code-Driven testing. The interfaces to classes, modules or libraries are tested with multiple and variety of input argumentstovalidatethat the results that are returned are precise [2]. Graphical User Interface testing (GUI). A testing system that creates UI events, for example, keystrokes and mouse clicks and sees the varieties that outcome in the UI, to approve that the recognizable conduct of the program is exact [2]. 1.1 Test Automation Test automation is the use of special software which automates the repetitive and necessarytask andcontrolsthe execution of tests comparingactual resultswiththeexpected results or perform additional testing that would be difficult to do manually. Many test automation tools give record and playback features enabling clients to intelligently record activities and replay them back to many times advantage of this tool is that it needs no coding or improvement of the software. However this methodology has several disadvantages as tests need to be re-recorded evenforsmall changes in the applicationlikemoving thecontrolsrenaming the controls. Record and playback also frequently adds indecorous activities or erroneously records some activities [2]. There are many advantages of test automation with respect to execution time, speed of test execution, repeatability of the tests, less human intervention. There are a number of feasible and open source tools available for test automation and selenium is one of the most widely used open source tool [2]. Test automation has many advantages some of these are: • Repeated regression testing • Quick feedback to the developers
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1921 • Indefinite repetitions of test case execution • Support for the development methodologies • Agile and extreme development • Orderly documentation of test cases • Customized reporting of the defects • Finding defects missed during manual testing 1.2 Selenium Selenium is an open source automation testing tool which is used to test the web application across different platforms. Selenium uses test scripts to execute the test cases within the browser. It uses iframes and Java Scripts to embed the test automation engine into the browser. This helps to run and test same test scripts on multiple browsers on multiple platforms. Selenium is basically used for functional regression testing [2]. Selenium is a suit of components each has its own testing purpose and these components are: Selenium IDE, Selenium Remote Control, Selenium Web Driver, and Selenium Grid [5]. Selenium components: Selenium Integrated Development Environment (IDE) Selenium Remote Control Web Driver Selenium Grid Selenium Integrated Development Environment (IDE) Selenium Integrated Development Environment is a Firefox plugin that allow testers to record their actions. Selenium IDE has a recording feature, which records user actions and then exports them as a reusable scripts in one of the supported programming languages that can be later executed. As it only supports Firefox browser hence all the user actions are recorded using a Graphical User Interface with Firefox browser. These recorded actions thenexported to various programming languages supported by selenium and then executed on many browsers [5]. Selenium Remote Control Selenium RC is the first automated web testing tool that allow users to write web application UI test in multiple programming languages. In selenium RC selenium opens multiple browsers at the same time and then runs the saved test-cases concurrently. Selenium RC not limitedtoselective browsers it supports many new browsers hence user can run many test-cases with own preferred language this helps in enhancing the performance of test-cases covering all the test scenarios and checks. Selenium RC Use many programming languages like Java, C#, PHP, Python, Perl, Ruby to create complex tests [5]. Selenium Web Driver Selenium Web Driver is an automation framework tool that supports multiple browsers and Ajax applications and implements a more modern and stable approach in automating the browser’s actions. Selenium web driver is also known as selenium 2.0. It controls the browser by directly communicating with it thereby controlling it from the OS level. Selenium web driver supports multiple Programming languagesto writethetestscriptssuchasJava, C#, PHP, Python, Perl, Java [3]. Web Driver has a good control on dynamic web pages where the elements of a web pages change without the page itself being reloaded [5]. Selenium Grid Selenium Grid is a tool used to run parallel tests across multiple machines on different browsers simultaneously which results in saved execution time. Selenium Grid uses hub and nodes concept where hub acts as a central point of selenium commands to each node connected to it. Selenium Grid has only one hub and nodes are instances that are attached to the hub which executes the tests [5]. 2. SELENIUM WEB DRIVER: TESTING TOOL Web Driver drives the web browser, controls the browser action and uses the browser’s own engine to control it. Web driver works with web elements of a web page. Initially it locates the web elements on the web page and then performs some action on it. It communicates with all page elements in a more realistic way [3]. Locators in Web Driver In Web Driver automation everything is identified with web components as it is a web application automation tool. Web Components are DOM Objects exhibit on the Web Page. To perform operations on a Web Element we have to find the Elements precisely [3]. As in the above articulation we need to determine some locator to distinguish web component. "By" is the class, in the class we have distinctive static techniques to recognize components as beneath 1. id 2. name 3. className 4. tagName 5. cssSelector 6. xpath 7. linkText
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1922 8. partialLinkText  By.id – Use “id” attribute to locate the element.  By.name - Use “name” attribute to locate the element.  By.className - Use “class” attribute to locate the element.  By.tagName - locates elementsbytheirtag name  By.cssSelector - finds elements based on the driver’s underlyingCSSSelectorengine.  By.xpath - locates elements via xpath.  By.linkText - finds a link element by the exact text it displays.  By.partialLinkText -locateselementsthat contain the given link text. Synchronization in Web Driver Web Driver has two types of waits – • Implicit Wait – Is utilized to set the default holding up time all through the program. This hold up is less complex to code. • Explicit Wait – Is utilized to set the waiting time for a specific instance only. Windows Handling in Web Driver There are Two kinds of windows which we can handle using Web Driver – 1) HTML Windows 2) Pop-Ups/Alerts HTML Windows Many Web Applications has different windows. Web Driver manages moving between named windows using the “switchto()” method. Alerts Alerts can be handled using four methods –  accept () – this method is used to accept and close the alert box.  dismiss() – this method is used to reject and close the alert box.  gettext()– this method is used to retrieve the message of the alert box.  sendKeys() To write some text to the alert Programming using Web Driver Web Driver handles Keyboard operations and Mouse Event operations. It contains the Actions classes that are required when executing these events [6]. Below are the most commonly used keyboard and mouse events provided by the Actions Class Method Description clickAndHold() It performs Click operation without discharging at the present mouse region contextClick() Performs a context-click at the current mouse area. doubleClick() Performs a double click at the current mouse area. dragAndDrop(source, target) It Performs click and hold operation at the region of the source control, at that point moves to the region of the target control, at that point discharges the mouse dragAndDropBy(source, x-offset, y-offset) Performs click-and-hold at the area of the source element, moves to a given offset, and then releases the mouse. keyUp(modifier _key) Does a key release. moveByOffset(x-offset, y- offset) It performs Moving operation on mouse from its present position to the provided offset. release() Releases the pressed left mouse button at the
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1923 present mouse location sendKeys(onElement, charsequence) Sends a sequence of keystrokes onto the element. Limitations However, despite all advantages of selenium web driver, it has some limitations. Selenium web driver has no built in report generation functionality. Selenium web driver hasno built in screenshot generation functionality. It is dependent on the third party tool for report and screenshot generation [4]. 3. FUTURE WORK There is scope of running scripts at the background without disturbing the foreground processes so testercanwork with different task along with running the test scripts at the background. It will help in reducing the execution time by executing the test cases concurrently in multiple browsers on multiple machines at the background what we needto do is to implement the code that will support the Multithread concept and minimizing the browser and run at the background. The future Implementation picture looks like figure 1 Fig -1: Execution Time 4. CONCLUSION Selenium Web Driver is a tool forin-WebApplicationtesting, begun by just contemplation and now it is being utilized effectively by both the engineers and clients. The most essential highlight of this tool is that it additionally encourages the testing of web applications alongside enhancing testing speed and reducing execution time for repetitive test cases. Selenium Web Driver is positively an advantage for any individual who is hoping to include an effective web testing tool to their toolbox. 5. REFERENCES [1] Neha Bhateja, “A Study on Various SoftwareAutomation Testing Tools “, ijarcsse Volume 5, Issue 6, June 2015. [2] Himanshi, Nitin Umesh , Amar Saraswat ,” Automation Testing: An Introduction to Selenium “, International Journal of ComputerApplications(0975 – 8887)Volume 119 – No.3, June 2015. [3] Purnima Bindal, Sonika Gupta, “Test Automation Selenium WebDriver using TestNG”, JECAS Volume 3, No.9, September 2014. [4] Satish Gojare,Rahul Joshi,Dhanashree Gaigaware,” Analysis and Design ofSeleniumWebDriverAutomation Testing Framework “, 2nd International Symposium on Big Data and Cloud Computing (ISBCC’15) [5] Jagannatha ,Niranjanamurthy, Manushree ,Chaitra,” Comparative Study on Automation Testing using Selenium Testing Framework and QTP “, IJCSMC, Vol. 3, Issue. 10, October 2014, pg.258 – 267 [6] http://www.guru99.com/selenium-tutorial.html