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

How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
Syntegro nieuwe producten februari 2013
Syntegro nieuwe producten februari 2013Syntegro nieuwe producten februari 2013
Syntegro nieuwe producten februari 2013marketing-xserius
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
LS Class Presentation about Wenzhou
LS Class Presentation about WenzhouLS Class Presentation about Wenzhou
LS Class Presentation about Wenzhoumaychan13
 
Geography Project about Earthquakes
Geography Project about EarthquakesGeography Project about Earthquakes
Geography Project about Earthquakesmaychan13
 
How watir works
How watir worksHow watir works
How watir workswatirt
 

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
 
Syntegro nieuwe producten februari 2013
Syntegro nieuwe producten februari 2013Syntegro nieuwe producten februari 2013
Syntegro nieuwe producten februari 2013
 
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
 
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 workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
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 - fuzzingFelipe Prado
 
Web components Introduction
Web components IntroductionWeb components Introduction
Web components IntroductionEugenio Romano
 
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 RussellQA or the Highway
 
HTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityHTML5 Real-Time and Connectivity
HTML5 Real-Time and ConnectivityPeter Lubbers
 
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 PicoWilliam Yang
 
Enyo Hackathon Presentation
Enyo Hackathon PresentationEnyo Hackathon Presentation
Enyo Hackathon PresentationBen Combee
 
Html5 Application Security
Html5 Application SecurityHtml5 Application Security
Html5 Application Securitychuckbt
 
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 Peyman Fakharian
 

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 watirwatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
How watir works
How watir worksHow watir works
How watir workswatirt
 
Test watir
Test watirTest watir
Test watirwatirt
 
Test watir
Test watirTest watir
Test watirwatirt
 

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

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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 Processorsdebabhi2
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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?Igalia
 
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 2024The Digital Insurer
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
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 2024The Digital Insurer
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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 organizationRadu Cotescu
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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.pptxEarley Information Science
 
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 Scriptwesley chun
 
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 CVKhem
 
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.pdfUK Journal
 
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.pptxMalak Abu Hammad
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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?
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
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
 
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
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.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