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

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
 
How watir works
How watir worksHow watir works
How watir works
watirt
 

Similar to How watir works (15)

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
 
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
 
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
 

More from watirt (20)

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
 
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
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

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