SlideShare a Scribd company logo
1 of 7
How Watir Works
                   Scripting Web Tests



A One-Day Tutorial
July 2005
Copyright © 2004-2005 Bret Pettichord. Permission granted to reproduce with attribution.
Browser Automation

                  Use the OLE/COM
                  Automation interface
                  to Internet Explorer




Tests drive the browser
                                         2
Document Object Model
  "DOM"
  A standard model for elements of a web
  page
  Used by client-side JavaScript
  Supported by IE, Mozilla, FireFox and
  other browsers
  IE also provides access to the DOM via
  OLE/COM
                                      3
Document Object Model




                        4
The DOM in Action




                    5
How are tests created?
  View Source
  Watir's show methods in IRB
  DOM Inspector such as SpySmith




                                   6
Building Your Own
  Any decent language can use Internet
  Explorer’s OLE/COM Automation
  interface
  There are equivalent interface
  mechanisms for other technologies




                                         7

More Related Content

Viewers also liked (12)

How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
LS Class Presentation about Wenzhou
LS Class Presentation about WenzhouLS Class Presentation about Wenzhou
LS Class Presentation about Wenzhou
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
Geography Project about Earthquakes
Geography Project about EarthquakesGeography Project about Earthquakes
Geography Project about Earthquakes
 
How watir works
How watir worksHow watir works
How watir works
 
Aperium golf event
Aperium golf eventAperium golf event
Aperium golf event
 
iLOQ Meeting 2012
iLOQ Meeting 2012iLOQ Meeting 2012
iLOQ Meeting 2012
 

Similar to How watir works

How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 

Similar to How watir works (14)

How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
DEF CON 23 - Saif el-sherei and etienne stalmans - fuzzing
DEF CON 23 - Saif el-sherei and etienne stalmans - fuzzingDEF CON 23 - Saif el-sherei and etienne stalmans - fuzzing
DEF CON 23 - Saif el-sherei and etienne stalmans - fuzzing
 
Web components Introduction
Web components IntroductionWeb components Introduction
Web components Introduction
 
Power-Up Your Test Suite with OLE Automation by Joshua Russell
Power-Up Your Test Suite with OLE Automation by Joshua RussellPower-Up Your Test Suite with OLE Automation by Joshua Russell
Power-Up Your Test Suite with OLE Automation by Joshua Russell
 
Ie9 overview
Ie9 overviewIe9 overview
Ie9 overview
 
robot framework1.pptx
robot framework1.pptxrobot framework1.pptx
robot framework1.pptx
 
HTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityHTML5 Real-Time and Connectivity
HTML5 Real-Time and Connectivity
 
Low-Code Testing Tool
Low-Code Testing ToolLow-Code Testing Tool
Low-Code Testing Tool
 
Easy Web Serivce on iOS with Pico
Easy Web Serivce on iOS with PicoEasy Web Serivce on iOS with Pico
Easy Web Serivce on iOS with Pico
 
Enyo Hackathon Presentation
Enyo Hackathon PresentationEnyo Hackathon Presentation
Enyo Hackathon Presentation
 
Html5 Application Security
Html5 Application SecurityHtml5 Application Security
Html5 Application Security
 
Web UI Tests: Introduce UI tests using Selenium
Web UI Tests: Introduce UI tests using Selenium Web UI Tests: Introduce UI tests using Selenium
Web UI Tests: Introduce UI tests using Selenium
 
Ef overview
Ef overviewEf overview
Ef overview
 

More from watirt

Test watir
Test watirTest watir
Test watir
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
How watir works
How watir worksHow watir works
How watir works
watirt
 
Test watir
Test watirTest watir
Test watir
watirt
 
Test watir
Test watirTest watir
Test watir
watirt
 

More from watirt (16)

Test watir
Test watirTest watir
Test watir
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
How watir works
How watir worksHow watir works
How watir works
 
Test watir
Test watirTest watir
Test watir
 
Test watir
Test watirTest watir
Test watir
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

How watir works

  • 1. How Watir Works Scripting Web Tests A One-Day Tutorial July 2005 Copyright © 2004-2005 Bret Pettichord. Permission granted to reproduce with attribution.
  • 2. Browser Automation Use the OLE/COM Automation interface to Internet Explorer Tests drive the browser 2
  • 3. Document Object Model "DOM" A standard model for elements of a web page Used by client-side JavaScript Supported by IE, Mozilla, FireFox and other browsers IE also provides access to the DOM via OLE/COM 3
  • 5. The DOM in Action 5
  • 6. How are tests created? View Source Watir's show methods in IRB DOM Inspector such as SpySmith 6
  • 7. Building Your Own Any decent language can use Internet Explorer’s OLE/COM Automation interface There are equivalent interface mechanisms for other technologies 7

Editor's Notes

  1. Scripting Web Tests July 2005 Present this slide deck after completing Lab 3
  2. Scripting Web Tests July 2005
  3. Scripting Web Tests July 2005
  4. Scripting Web Tests July 2005 Slide Courtesy of Dion Johnson
  5. Scripting Web Tests July 2005