SlideShare a Scribd company logo
1 of 17
Tech Talks: Web Driver   Taras Lytvyn

Implementation and
Features
                                        © 2012GlobalLogic Inc.   1
Contents
- Automation implementation (+ migrating)
 - How to update skills for “automation
 ability”
 - Selenium WebDriver “advanced level “ tricks
- Selenium WebDriver Features
development and implementation in
examples (overview of situations that
“are not automated”)

                                        © 2012GlobalLogic Inc.   2
Starting Automation on Selenium
              WebDriver


  You are manual       You currently have
tester and want to       automation on
    implement          your project based
automation testing     on Selenium 1 and
on your project on      want to make a
    WebDriver.            restyling with
                           WebDriver.


                                    © 2012GlobalLogic Inc.   3
Existing Automation on Selenium



                Implementation,
                updating
 Framework on                     Framework on
 Selenium 1                       Selenium 2




                                          © 2012GlobalLogic Inc.   4
Migrating features (Case 1)
- Build Framework To make life easier
- Use Pattern approach
  Simon Stewart Migration approach
       Getting Started - launching
       Clicking and Typing is More Complete
       WaitForPageToLoad Returns Too Soon
       Finding By approach
       Executing Javascript Doesn’t Return Anything



                                                      Comparisons
                                                           © 2012GlobalLogic Inc.   5
MANUAL Testing



Update Skills 1 {…}           Practice in
                              Record/Playback

    Update Skills 2 {…}


  Build Simple            Implement and
  Framework               develop dif. features
                                           © 2012GlobalLogic Inc.   6
From Manual Testing (Case 2)
 - Read “Automated Software Testing” (by
 Elfriede Dusting),
 Watch webinar “What is automation”
  - Learn Programming Language syntax/Install Eclipse
       Prog. Languages for automation (Web based)

                                            JAVA




        Thinking in Java (by B.Eckel)
        Java for QA/QC engineers


                                                        © 2012GlobalLogic Inc.   7
From Manual Testing (Case 2)
    - HTML, CSS, JS syntax
    - Install:
   Selenium IDE,
   firebug,
   firepath
   - Watch Record/Playback Selenium IDE Tutorial
   - Create account on automated-testing.info
   - Watch “Locators” Tutorial
   - Watch “RegExps” Tutorial/Perform RegExp practice here


                                                       © 2012GlobalLogic Inc.   8
From Manual Testing (Case 2)

   - Learn JUnit/Test NG Specification and
  features

   - Improve programming skills with Selenium
  IDE + Eclipse + JUnit

   - Try to build your first Automation Framework

      Advanced automation
  - Refactor your code, create extensions, stubs, wraps, etc.
  - Try to automate things “that couldn’t be automated”


                                                            © 2012GlobalLogic Inc.   9
“Things couldn’t be automated”
                    as WebDriver tricks
   EXAMPLES:
     - CANVAS, drag & drop on html page
     - N-Window Automation (with JS injection)
     - Windows Upload pop-up




                                                 © 2012GlobalLogic Inc.   10
“Things couldn’t be automated”
                                    Canvas




 Trick with checking the image correctness

     - With JS execution (getValue())
     - Sikuli Java Library


                                             © 2012GlobalLogic Inc.   11
“Things couldn’t be automated”
            Working with more then 1 tab




 Trick with checking the image correctness
    Resolve: JS injection for creating anchor tag with url of needed page
             Handle first window, from that test is started




                                                                            © 2012GlobalLogic Inc.   12
Write manipulators for switching




                                   © 2012GlobalLogic Inc.   13
“Things couldn’t be automated”
          Windows Upload Pop-Up




 Trick with checking the image correctness



                                             © 2012GlobalLogic Inc.   14
Selenium WebDriver is free powerful
                   tool for web automation
                   Selenium WebDriver has excellent
                   web support
  To begin automate with Selenium WebDriver
  successfully …
    - SET OF SKILLS
     - PRACTICE

 For advanced using…
- Forums, blogs (automated-testing.info)
- Look for difficult situations and try to automate them
                                                    © 2012GlobalLogic Inc.   15
< QUESTIONS ? >



                  © 2012GlobalLogic Inc.   16
Taras Lytvyn
automation QC in Global Logic inc.
email : taras.lytvyn@globallogic.com
web: http://testers.lviv.ua/automation_blog
skype: tasryk




                                              © 2012GlobalLogic Inc.   17

More Related Content

What's hot

Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansalia
Rakesh Hansalia
 
Selenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNGSelenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNG
Basul Asahab
 

What's hot (20)

Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Step by step - Selenium 3 web-driver - From Scratch
Step by step - Selenium 3 web-driver - From Scratch  Step by step - Selenium 3 web-driver - From Scratch
Step by step - Selenium 3 web-driver - From Scratch
 
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
 
How to Configure Selenium WebDriver (java)
How to Configure Selenium WebDriver (java)How to Configure Selenium WebDriver (java)
How to Configure Selenium WebDriver (java)
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
Selenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsSelenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applications
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansalia
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Selenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNGSelenium_WebDriver_Java_TestNG
Selenium_WebDriver_Java_TestNG
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium
SeleniumSelenium
Selenium
 
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
 
Selenium Demo
Selenium DemoSelenium Demo
Selenium Demo
 
An Overview of Selenium
An Overview of SeleniumAn Overview of Selenium
An Overview of Selenium
 
Automation Using Selenium Webdriver
Automation Using Selenium WebdriverAutomation Using Selenium Webdriver
Automation Using Selenium Webdriver
 
Selenium
SeleniumSelenium
Selenium
 

Similar to Tech talks (Automation on Selenium Web Driver. How to begin & implement)

Selenium - The Way Of Success
Selenium - The Way Of SuccessSelenium - The Way Of Success
Selenium - The Way Of Success
Zbyszek Mockun
 
C2B2 WebLogic Administration Training
C2B2 WebLogic Administration TrainingC2B2 WebLogic Administration Training
C2B2 WebLogic Administration Training
C2B2 Consulting
 
Sudeep_Automation_resume
Sudeep_Automation_resumeSudeep_Automation_resume
Sudeep_Automation_resume
Sudeep Sinha
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 
Selenium withnet
Selenium withnetSelenium withnet
Selenium withnet
Vlad Maniak
 

Similar to Tech talks (Automation on Selenium Web Driver. How to begin & implement) (20)

Framework for Web Automation Testing
Framework for Web Automation TestingFramework for Web Automation Testing
Framework for Web Automation Testing
 
Pdx Se Intro To Se
Pdx Se Intro To SePdx Se Intro To Se
Pdx Se Intro To Se
 
Upcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testingUpcoming new features of selenium in automation testing
Upcoming new features of selenium in automation testing
 
前端網頁自動測試
前端網頁自動測試 前端網頁自動測試
前端網頁自動測試
 
SPA 2009 - Acceptance Testing AJAX Web Applications through the GUI
SPA 2009 - Acceptance Testing AJAX Web Applications through the GUISPA 2009 - Acceptance Testing AJAX Web Applications through the GUI
SPA 2009 - Acceptance Testing AJAX Web Applications through the GUI
 
Selenium
SeleniumSelenium
Selenium
 
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User ExperienceNagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience
Nagios Conference 2012 - Nathan Vonnahme - Monitoring the User Experience
 
Selenium - The Way Of Success
Selenium - The Way Of SuccessSelenium - The Way Of Success
Selenium - The Way Of Success
 
Automated Testing using JavaScript
Automated Testing using JavaScriptAutomated Testing using JavaScript
Automated Testing using JavaScript
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Selenium
SeleniumSelenium
Selenium
 
Selenium using C# by Yogesh Kumar
Selenium using C# by  Yogesh KumarSelenium using C# by  Yogesh Kumar
Selenium using C# by Yogesh Kumar
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
C2B2 WebLogic Administration Training
C2B2 WebLogic Administration TrainingC2B2 WebLogic Administration Training
C2B2 WebLogic Administration Training
 
Sudeep_Automation_resume
Sudeep_Automation_resumeSudeep_Automation_resume
Sudeep_Automation_resume
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
Sightly_techInsight
Sightly_techInsightSightly_techInsight
Sightly_techInsight
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
Selenium withnet
Selenium withnetSelenium withnet
Selenium withnet
 
test_automation_POC
test_automation_POCtest_automation_POC
test_automation_POC
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Tech talks (Automation on Selenium Web Driver. How to begin & implement)

  • 1. Tech Talks: Web Driver Taras Lytvyn Implementation and Features © 2012GlobalLogic Inc. 1
  • 2. Contents - Automation implementation (+ migrating) - How to update skills for “automation ability” - Selenium WebDriver “advanced level “ tricks - Selenium WebDriver Features development and implementation in examples (overview of situations that “are not automated”) © 2012GlobalLogic Inc. 2
  • 3. Starting Automation on Selenium WebDriver You are manual You currently have tester and want to automation on implement your project based automation testing on Selenium 1 and on your project on want to make a WebDriver. restyling with WebDriver. © 2012GlobalLogic Inc. 3
  • 4. Existing Automation on Selenium Implementation, updating Framework on Framework on Selenium 1 Selenium 2 © 2012GlobalLogic Inc. 4
  • 5. Migrating features (Case 1) - Build Framework To make life easier - Use Pattern approach Simon Stewart Migration approach Getting Started - launching Clicking and Typing is More Complete WaitForPageToLoad Returns Too Soon Finding By approach Executing Javascript Doesn’t Return Anything Comparisons © 2012GlobalLogic Inc. 5
  • 6. MANUAL Testing Update Skills 1 {…} Practice in Record/Playback Update Skills 2 {…} Build Simple Implement and Framework develop dif. features © 2012GlobalLogic Inc. 6
  • 7. From Manual Testing (Case 2) - Read “Automated Software Testing” (by Elfriede Dusting), Watch webinar “What is automation” - Learn Programming Language syntax/Install Eclipse Prog. Languages for automation (Web based) JAVA Thinking in Java (by B.Eckel) Java for QA/QC engineers © 2012GlobalLogic Inc. 7
  • 8. From Manual Testing (Case 2) - HTML, CSS, JS syntax - Install: Selenium IDE, firebug, firepath - Watch Record/Playback Selenium IDE Tutorial - Create account on automated-testing.info - Watch “Locators” Tutorial - Watch “RegExps” Tutorial/Perform RegExp practice here © 2012GlobalLogic Inc. 8
  • 9. From Manual Testing (Case 2) - Learn JUnit/Test NG Specification and features - Improve programming skills with Selenium IDE + Eclipse + JUnit - Try to build your first Automation Framework Advanced automation - Refactor your code, create extensions, stubs, wraps, etc. - Try to automate things “that couldn’t be automated” © 2012GlobalLogic Inc. 9
  • 10. “Things couldn’t be automated” as WebDriver tricks EXAMPLES: - CANVAS, drag & drop on html page - N-Window Automation (with JS injection) - Windows Upload pop-up © 2012GlobalLogic Inc. 10
  • 11. “Things couldn’t be automated” Canvas Trick with checking the image correctness - With JS execution (getValue()) - Sikuli Java Library © 2012GlobalLogic Inc. 11
  • 12. “Things couldn’t be automated” Working with more then 1 tab Trick with checking the image correctness Resolve: JS injection for creating anchor tag with url of needed page Handle first window, from that test is started © 2012GlobalLogic Inc. 12
  • 13. Write manipulators for switching © 2012GlobalLogic Inc. 13
  • 14. “Things couldn’t be automated” Windows Upload Pop-Up Trick with checking the image correctness © 2012GlobalLogic Inc. 14
  • 15. Selenium WebDriver is free powerful tool for web automation Selenium WebDriver has excellent web support To begin automate with Selenium WebDriver successfully … - SET OF SKILLS - PRACTICE For advanced using… - Forums, blogs (automated-testing.info) - Look for difficult situations and try to automate them © 2012GlobalLogic Inc. 15
  • 16. < QUESTIONS ? > © 2012GlobalLogic Inc. 16
  • 17. Taras Lytvyn automation QC in Global Logic inc. email : taras.lytvyn@globallogic.com web: http://testers.lviv.ua/automation_blog skype: tasryk © 2012GlobalLogic Inc. 17