By:
Dwarika Dhish Mishra
http://abodeqa.wordpress.com
Email: dwarika1987@gmail.com
Mobile: 9999978609
Agenda
 Elementary Introduction of Selenium
 Why Selenium is used
 Different Selenium Component
 Difference between ea...
Selenium

Browser
Automati
on tool
Java
C#
Ruby

Open
Source

Perl
Python
Php

Selenium

IE
Firefox
Chrome
Safari
Opera

W...
Selenium component
IDE

Grid

Selenium

WebDriver

RC
Selenium IDE
 Selenium IDE is an integrated development

environment for Selenium tests.
 It is an extension of Firefox ...
Selenium RC
 Provides Selenium Server that acts as HTTP proxy
 Able to handle Open, Close and Stop a browser
 Provides ...
How it works
Selenium WebDriver
 WebDriver is designed in a simpler and more concise

programming interface along with addressing some...
Configuration of WebDriver in Eclipse
Visit this link to read

http://abodeqa.wordpress.com/2013/01/24/configuring-seleniu...
First WebDriver Script





















public class Example {
public static void main(String[] ar...
Next Session
Locators
 Id
 Name
 ClassName
 TagName
 linkText
 Xpath
 cssSelector
Upcoming SlideShare
Loading in …5
×

Selenium - BNT 07

1,079 views

Published on

By Dwarika Mishra

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,079
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
40
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Selenium - BNT 07

  1. 1. By: Dwarika Dhish Mishra http://abodeqa.wordpress.com Email: dwarika1987@gmail.com Mobile: 9999978609
  2. 2. Agenda  Elementary Introduction of Selenium  Why Selenium is used  Different Selenium Component  Difference between each Selenium Component  Locators
  3. 3. Selenium Browser Automati on tool Java C# Ruby Open Source Perl Python Php Selenium IE Firefox Chrome Safari Opera Window Macintosh Linux http://abodeqa.wordpress.com/2013/01/21/selenium-introduction/
  4. 4. Selenium component IDE Grid Selenium WebDriver RC
  5. 5. Selenium IDE  Selenium IDE is an integrated development environment for Selenium tests.  It is an extension of Firefox and used to record, edit, and replay the test within  With IDE we can export our test in any these languages HTML, Java, Ruby scripts, or any other format  To learn more visit this link http://abodeqa.wordpress.com/2013/01/22/selenium-ide-itsdownloading-and-installation/
  6. 6. Selenium RC  Provides Selenium Server that acts as HTTP proxy  Able to handle Open, Close and Stop a browser  Provides user to script the UI testing  Provides support to all browser which are able to handle javascript  Enables to open any HTTP WebSite  Enables to use loops, conditions and give the power of programming(Scripting)
  7. 7. How it works
  8. 8. Selenium WebDriver  WebDriver is designed in a simpler and more concise programming interface along with addressing some limitations in the Selenium-RC API.  WebDriver is a compact Object Oriented API when compared to Selenium1.0  It drives the browser much more effectively and over comes the limitations of Selenium 1.x which affected our functional test coverage, like the file upload or download, pop-ups and dialogs barrier  WebDriver overcomes the limitation of Selenium Rc's Single Host origin policy
  9. 9. Configuration of WebDriver in Eclipse Visit this link to read http://abodeqa.wordpress.com/2013/01/24/configuring-selenium-webdriver-in-eclipse-with-testng/
  10. 10. First WebDriver Script                     public class Example { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get("http://www.google.com"); WebElement element = driver.findElement(By.name("q")); element.sendKeys("Cheese!"); element.submit(); System.out.println("Page title is: " +driver.getTitle()); driver.quit(); } }
  11. 11. Next Session Locators  Id  Name  ClassName  TagName  linkText  Xpath  cssSelector

×