SlideShare a Scribd company logo
1 of 12
Download to read offline
Welcome



          June 21, 2012   1
Presentation on
Selenium-Webdriver


   Browser automation
About SCQAA-SF- A Not-for Profit
Organization

• SCQAA-SF (www.scqaa.net) chapter
    sponsors the sharing of information to
    promote and encourage the improvement in
    information technology quality practices and
    principles through networking, training and
    professional development.
•   Networking: We meet once in 2 months in
    San Fernando Valley.
•   Check us out on LinkedIn (SCQAA-SF)
•   Contact Sujit at sujit58@gmail.com or call
                                       June 21, 2012   3
Membership Benefits:
• Excellent speaker presentations on
    advancements in technology and
    methodology
•   Networking opportunities
•   PDU, CSTE and CSQA credits
•   Regular meetings are free for members and
    include dinner



                                       June 21, 2012   4
Membership Policy
• Recently revised our membership dues policy
    to better accommodate member needs and
    current economic conditions.
•   Annual membership is $50, or $35 for those
    who are in between jobs.
•   Please check your renewal with Cheryl Leoni.
    If you have recently joined or renewed,
    please check before renewing again


                                     June 21, 2012   5
What is Selenium?
Browser automation tool
•   Open source
•   Works with multiple OS, and browsers.
•   Selenium IDE is a plugin that can be
    installed to record and run tests.
•   Selenium provides an API,and libraries to
    support following languages- Java, Ruby,
    Python, PHP, Perl, and C#.
Components




WebDriver                          GRID

                      CORE API




   IDE                           Selenium RC
Build architecture
                     REPORT


                                       SELENIUM GRID



ddDEVELOPER


                       JENKINS                    CH
                                      IE    FF    RO
                                      9           ME

                     BUILD SERVER
                                    MUMULTIPLE NODES

     SVN



                                           AUT
 RRREPOSITORY

                     QA ENGINEER
DOM and locating UI Elements
The Document Object Model (DOM) is an application programming
interface (API) for valid HTML and well-formed XML documents. It defines
the logical structure of documents and the way a document is accessed
and manipulated.




     Most common locators while traversing DOM
      •   By ID

      •   By Class Name

      •   By Tag Name

      •   By Link Text

      •   By CSS

      •   By By XPATH
import static org.junit.Assert.assertEquals;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;                            webDriver Import


public class NewTest {

                                                                               Java
  public static void main(String[] args) {

  WebDriver d= new FirefoxDriver();
  d.get("http://www.altavista.com/");
  d.findElement(By.id("yschsp")).sendKeys("water");
  d.findElement(By.id("yschbt")).click();                                       WebDriver codes

  d.findElement(By.id("link-1")).click();

  System.out.println("Title contains"+" " +d.getTitle());
  assertEquals("Water - Wikipedia, the free encyclopedia",(d.getTitle()));
  d.close();


                                                                                      Junit Annotation



  }
R               RESOURCES

WebDriver Link
http://seleniumhq.org/docs/03_webdriver.htm



Firebug link              http://getfirebug.com/




Eclipse download         http://www.eclipse.org/downloads/
://www.eclipse.org/downloads/
http://www.eclipse.org/downloads/
Thank you so much for attending the presentation. If you have any
questions do not hesitate to-

Contact the Presenter:

Sajan at srimal27@hotmail.com

Sujit Ghosh, Program Chair at SCQAA at sujit58@gmail.com

More Related Content

Viewers also liked

MPPS 01_Lathe Machine
MPPS 01_Lathe MachineMPPS 01_Lathe Machine
MPPS 01_Lathe Machineprashant310
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Edureka!
 
Web Application Testing with Selenium
Web Application Testing with Selenium Web Application Testing with Selenium
Web Application Testing with Selenium Sargis Sargsyan
 

Viewers also liked (8)

Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
MPPS 01_Lathe Machine
MPPS 01_Lathe MachineMPPS 01_Lathe Machine
MPPS 01_Lathe Machine
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium
SeleniumSelenium
Selenium
 
Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Web Application Testing with Selenium
Web Application Testing with Selenium Web Application Testing with Selenium
Web Application Testing with Selenium
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 

Similar to SCQAA-SF Selenium Presentation

Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722ppts123456
 
Bala Sr Java Developer
Bala  Sr Java DeveloperBala  Sr Java Developer
Bala Sr Java DeveloperJava Dev
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kitSon Nguyen
 
Intro to Eclipse Che, by Tyler Jewell
Intro to Eclipse Che, by Tyler JewellIntro to Eclipse Che, by Tyler Jewell
Intro to Eclipse Che, by Tyler Jewelljwi11iams
 
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe DevelopmentEclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe DevelopmentDevOps.com
 
Getting started with Selenium 2
Getting started with Selenium 2Getting started with Selenium 2
Getting started with Selenium 2Sebastiano Armeli
 
Eclipse Developement @ Progress Software
Eclipse Developement @ Progress SoftwareEclipse Developement @ Progress Software
Eclipse Developement @ Progress Softwaresriikanthp
 
Getting Started with API Management – Why It's Needed On-prem and in the Cloud
Getting Started with API Management – Why It's Needed On-prem and in the CloudGetting Started with API Management – Why It's Needed On-prem and in the Cloud
Getting Started with API Management – Why It's Needed On-prem and in the CloudRevelation Technologies
 
Yemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield UniversityYemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield UniversityGuillermo Julca
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Florent BENOIT
 
JohnConnollyResumePerformance2017
JohnConnollyResumePerformance2017JohnConnollyResumePerformance2017
JohnConnollyResumePerformance2017John Connolly
 
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDev
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDevTriple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDev
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDevWerner Keil
 
Nilesh_Surange J2EE 9.5+ Years
Nilesh_Surange J2EE  9.5+ YearsNilesh_Surange J2EE  9.5+ Years
Nilesh_Surange J2EE 9.5+ Yearssurange
 
Framework adoption for java enterprise application development
Framework adoption for java enterprise application developmentFramework adoption for java enterprise application development
Framework adoption for java enterprise application developmentClarence Ho
 
Content Strategy and Developer Engagement for DevPortals
Content Strategy and Developer Engagement for DevPortalsContent Strategy and Developer Engagement for DevPortals
Content Strategy and Developer Engagement for DevPortalsAxway
 

Similar to SCQAA-SF Selenium Presentation (20)

Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722Anypointconnectordevkit 160816041722
Anypointconnectordevkit 160816041722
 
Bala Sr Java Developer
Bala  Sr Java DeveloperBala  Sr Java Developer
Bala Sr Java Developer
 
Profile_Ahmad2
Profile_Ahmad2Profile_Ahmad2
Profile_Ahmad2
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
 
Intro to Eclipse Che, by Tyler Jewell
Intro to Eclipse Che, by Tyler JewellIntro to Eclipse Che, by Tyler Jewell
Intro to Eclipse Che, by Tyler Jewell
 
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe DevelopmentEclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
 
Bhavin_Resume
Bhavin_ResumeBhavin_Resume
Bhavin_Resume
 
Getting started with Selenium 2
Getting started with Selenium 2Getting started with Selenium 2
Getting started with Selenium 2
 
Noonan_resume
Noonan_resumeNoonan_resume
Noonan_resume
 
Eclipse Developement @ Progress Software
Eclipse Developement @ Progress SoftwareEclipse Developement @ Progress Software
Eclipse Developement @ Progress Software
 
kowsalyamanickam_resume_OIM
kowsalyamanickam_resume_OIMkowsalyamanickam_resume_OIM
kowsalyamanickam_resume_OIM
 
Getting Started with API Management – Why It's Needed On-prem and in the Cloud
Getting Started with API Management – Why It's Needed On-prem and in the CloudGetting Started with API Management – Why It's Needed On-prem and in the Cloud
Getting Started with API Management – Why It's Needed On-prem and in the Cloud
 
Yemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield UniversityYemo_Capstone_MS_Fairfield University
Yemo_Capstone_MS_Fairfield University
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014
 
JohnConnollyResumePerformance2017
JohnConnollyResumePerformance2017JohnConnollyResumePerformance2017
JohnConnollyResumePerformance2017
 
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDev
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDevTriple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDev
Triple-E’class Continuous Delivery with Hudson, Maven, Kokki and PyDev
 
Nilesh_Surange J2EE 9.5+ Years
Nilesh_Surange J2EE  9.5+ YearsNilesh_Surange J2EE  9.5+ Years
Nilesh_Surange J2EE 9.5+ Years
 
Framework adoption for java enterprise application development
Framework adoption for java enterprise application developmentFramework adoption for java enterprise application development
Framework adoption for java enterprise application development
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Content Strategy and Developer Engagement for DevPortals
Content Strategy and Developer Engagement for DevPortalsContent Strategy and Developer Engagement for DevPortals
Content Strategy and Developer Engagement for DevPortals
 

More from Sujit Ghosh

Aviana presentation
Aviana presentationAviana presentation
Aviana presentationSujit Ghosh
 
QA Team Goes to Agile and Continuous integration
QA Team Goes to Agile and Continuous integrationQA Team Goes to Agile and Continuous integration
QA Team Goes to Agile and Continuous integrationSujit Ghosh
 
3 S GBS JDE Capabilities
3 S GBS JDE Capabilities3 S GBS JDE Capabilities
3 S GBS JDE CapabilitiesSujit Ghosh
 
SCQAA-SF Meeting on May 21 2014
SCQAA-SF Meeting on May 21 2014 SCQAA-SF Meeting on May 21 2014
SCQAA-SF Meeting on May 21 2014 Sujit Ghosh
 
How to handle challenginng stakeholder
How to handle challenginng stakeholderHow to handle challenginng stakeholder
How to handle challenginng stakeholderSujit Ghosh
 
3 s glbal presentation on unicode development
3 s glbal presentation on unicode development3 s glbal presentation on unicode development
3 s glbal presentation on unicode developmentSujit Ghosh
 
Sit future of_the_desktop
Sit future of_the_desktopSit future of_the_desktop
Sit future of_the_desktopSujit Ghosh
 
How do you know bp improvements scqaa
How do you know  bp improvements scqaaHow do you know  bp improvements scqaa
How do you know bp improvements scqaaSujit Ghosh
 
How to Do Gmail Merge
How to Do Gmail MergeHow to Do Gmail Merge
How to Do Gmail MergeSujit Ghosh
 
Cognos BI Training Orientation
Cognos BI Training Orientation Cognos BI Training Orientation
Cognos BI Training Orientation Sujit Ghosh
 
Mixed Model Management:Manage Projects and Not Tasks
Mixed Model Management:Manage Projects and Not TasksMixed Model Management:Manage Projects and Not Tasks
Mixed Model Management:Manage Projects and Not TasksSujit Ghosh
 
Big Data Presentation at SCQAA-SF on June 12 2013
Big Data Presentation at SCQAA-SF on June 12 2013Big Data Presentation at SCQAA-SF on June 12 2013
Big Data Presentation at SCQAA-SF on June 12 2013Sujit Ghosh
 
Big data webinar may23 nrit by sunil
Big data webinar may23 nrit by sunilBig data webinar may23 nrit by sunil
Big data webinar may23 nrit by sunilSujit Ghosh
 
Presentation by Kiho Sohn
Presentation by Kiho SohnPresentation by Kiho Sohn
Presentation by Kiho SohnSujit Ghosh
 
How To Convince A Skeptic
How To Convince A SkepticHow To Convince A Skeptic
How To Convince A SkepticSujit Ghosh
 
Mobile Cross Platform
Mobile Cross PlatformMobile Cross Platform
Mobile Cross PlatformSujit Ghosh
 
Unconventional Risks Presented by Synergy Assoc
Unconventional Risks Presented by Synergy AssocUnconventional Risks Presented by Synergy Assoc
Unconventional Risks Presented by Synergy AssocSujit Ghosh
 
Harness The Power Of Social Media
Harness The Power Of Social MediaHarness The Power Of Social Media
Harness The Power Of Social MediaSujit Ghosh
 

More from Sujit Ghosh (19)

Aviana presentation
Aviana presentationAviana presentation
Aviana presentation
 
QA Team Goes to Agile and Continuous integration
QA Team Goes to Agile and Continuous integrationQA Team Goes to Agile and Continuous integration
QA Team Goes to Agile and Continuous integration
 
3 S GBS JDE Capabilities
3 S GBS JDE Capabilities3 S GBS JDE Capabilities
3 S GBS JDE Capabilities
 
SCQAA-SF Meeting on May 21 2014
SCQAA-SF Meeting on May 21 2014 SCQAA-SF Meeting on May 21 2014
SCQAA-SF Meeting on May 21 2014
 
How to handle challenginng stakeholder
How to handle challenginng stakeholderHow to handle challenginng stakeholder
How to handle challenginng stakeholder
 
3 s glbal presentation on unicode development
3 s glbal presentation on unicode development3 s glbal presentation on unicode development
3 s glbal presentation on unicode development
 
Sit future of_the_desktop
Sit future of_the_desktopSit future of_the_desktop
Sit future of_the_desktop
 
How do you know bp improvements scqaa
How do you know  bp improvements scqaaHow do you know  bp improvements scqaa
How do you know bp improvements scqaa
 
How to Do Gmail Merge
How to Do Gmail MergeHow to Do Gmail Merge
How to Do Gmail Merge
 
Cognos BI Training Orientation
Cognos BI Training Orientation Cognos BI Training Orientation
Cognos BI Training Orientation
 
Mixed Model Management:Manage Projects and Not Tasks
Mixed Model Management:Manage Projects and Not TasksMixed Model Management:Manage Projects and Not Tasks
Mixed Model Management:Manage Projects and Not Tasks
 
Big Data Presentation at SCQAA-SF on June 12 2013
Big Data Presentation at SCQAA-SF on June 12 2013Big Data Presentation at SCQAA-SF on June 12 2013
Big Data Presentation at SCQAA-SF on June 12 2013
 
Big data webinar may23 nrit by sunil
Big data webinar may23 nrit by sunilBig data webinar may23 nrit by sunil
Big data webinar may23 nrit by sunil
 
Presentation by Kiho Sohn
Presentation by Kiho SohnPresentation by Kiho Sohn
Presentation by Kiho Sohn
 
How To Convince A Skeptic
How To Convince A SkepticHow To Convince A Skeptic
How To Convince A Skeptic
 
Mobile Cross Platform
Mobile Cross PlatformMobile Cross Platform
Mobile Cross Platform
 
Attitude
AttitudeAttitude
Attitude
 
Unconventional Risks Presented by Synergy Assoc
Unconventional Risks Presented by Synergy AssocUnconventional Risks Presented by Synergy Assoc
Unconventional Risks Presented by Synergy Assoc
 
Harness The Power Of Social Media
Harness The Power Of Social MediaHarness The Power Of Social Media
Harness The Power Of Social Media
 

SCQAA-SF Selenium Presentation

  • 1. Welcome June 21, 2012 1
  • 3. About SCQAA-SF- A Not-for Profit Organization • SCQAA-SF (www.scqaa.net) chapter sponsors the sharing of information to promote and encourage the improvement in information technology quality practices and principles through networking, training and professional development. • Networking: We meet once in 2 months in San Fernando Valley. • Check us out on LinkedIn (SCQAA-SF) • Contact Sujit at sujit58@gmail.com or call June 21, 2012 3
  • 4. Membership Benefits: • Excellent speaker presentations on advancements in technology and methodology • Networking opportunities • PDU, CSTE and CSQA credits • Regular meetings are free for members and include dinner June 21, 2012 4
  • 5. Membership Policy • Recently revised our membership dues policy to better accommodate member needs and current economic conditions. • Annual membership is $50, or $35 for those who are in between jobs. • Please check your renewal with Cheryl Leoni. If you have recently joined or renewed, please check before renewing again June 21, 2012 5
  • 6. What is Selenium? Browser automation tool • Open source • Works with multiple OS, and browsers. • Selenium IDE is a plugin that can be installed to record and run tests. • Selenium provides an API,and libraries to support following languages- Java, Ruby, Python, PHP, Perl, and C#.
  • 7. Components WebDriver GRID CORE API IDE Selenium RC
  • 8. Build architecture REPORT SELENIUM GRID ddDEVELOPER JENKINS CH IE FF RO 9 ME BUILD SERVER MUMULTIPLE NODES SVN AUT RRREPOSITORY QA ENGINEER
  • 9. DOM and locating UI Elements The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. Most common locators while traversing DOM • By ID • By Class Name • By Tag Name • By Link Text • By CSS • By By XPATH
  • 10. import static org.junit.Assert.assertEquals; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; webDriver Import public class NewTest { Java public static void main(String[] args) { WebDriver d= new FirefoxDriver(); d.get("http://www.altavista.com/"); d.findElement(By.id("yschsp")).sendKeys("water"); d.findElement(By.id("yschbt")).click(); WebDriver codes d.findElement(By.id("link-1")).click(); System.out.println("Title contains"+" " +d.getTitle()); assertEquals("Water - Wikipedia, the free encyclopedia",(d.getTitle())); d.close(); Junit Annotation }
  • 11. R RESOURCES WebDriver Link http://seleniumhq.org/docs/03_webdriver.htm Firebug link http://getfirebug.com/ Eclipse download http://www.eclipse.org/downloads/ ://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/
  • 12. Thank you so much for attending the presentation. If you have any questions do not hesitate to- Contact the Presenter: Sajan at srimal27@hotmail.com Sujit Ghosh, Program Chair at SCQAA at sujit58@gmail.com