selenium introduction
DESCRIPTION
Introduction about on Selenium, a web browser automation tool. Includes Selenium RC, Webdriver, and GridTRANSCRIPT
OPEN SOURCE
APACHE LICENSE 2.0
https://code.google.com/p/selenium/source/browse
SELENIUM AUTOMATES BROWSERS
ALL MAJOR BROWSERS
ON ALL MAJOR (DESKTOP) OPERATING SYSTEMS
… AND MOBILE*WEB, NATIVE, AND HYBRID APPLICATIONS
* Via appium, Selendroid, ios-driver and WP driver.
No Proprietary IDE / Language
Selenium 2
Selenium WebDriver
SeleniumGrid with Selenium
RC
SeleniumIDE
Browser Automation
APILocal + Remote
Centrally managed parallel
execution in diverse
environments
A FF record-playback tool
mostly used for fast
prototyping
(Since 2011)
Selenium IDE
SELENIUM IDEA Firefox Add-on for recording, editing and running tests.Over 10M downloads to date!
PROS:
• No programming skills required
• Easy record and playback• Step by step debugger• Play tests on any browser• Export tests as WebDriver
tests• Extensible
CONS:
• Based on SeleniumCore• No code reuse• No iterations and
conditional statements• No exception handling• No error recovery
Selenium WebDriver
HOW DOES IT WORK?
webdriver.xpi
IEDriverServer.exe
XPCOM
COM
WIRE (JSON / HTTP)
WIRE (JSON / HTTP)
Selenium RC
What is it?• Selenium RC was the main project of Selenium for long time, before
webdriver.• It is still supported and provides some feature which are not present in
latest Selenium 2• It supports several languages and almost all the web browsers in the
market.
How to launch?java -jar selenium-server-standalone-2.41.0.jar
Difference between Selenium RC and Selenium WebDriver
Selenium RC Selenium Webdriver
Selenium Grid
WHY GRID?
Scale by distributing tests (parallel execution)
Run tests against a vast combination of browsers / OS.
HOWDOESIT WORK?