SlideShare a Scribd company logo
CROSS BROWSER TESTING CLOUD
www.lambdatest.com
Cross Browser
Automation Testing
Using Watir
What Is Browser Automation?
Browsers have become indispensable
to our daily basis productivity. We
explore, learn, shop, invest and do a lot
more with browsers. There are times
when we feel the need for browsers to
automate our repetitive tasks. Imagine
how cool that would be? Is it possible?
Yes
Now, there are thousands of
browsers available on the internet
and your website may render in a
unique manner on every browser
or browser version. It could be
very complex to test your website
across every single one of them.
Cross browser automation testing
is to verify your application
renders seamlessly across
different browsers and its
combination version.
What Is Cross Browser Automation Testing?
Watir is an open source Ruby
Libraries which helps to achieve
cross browser automation testing.
Watir supports Ruby which is
object oriented language and
typically it’s simpler and faster
than other languages. The good
thing about Watir is, it supports
any web application irrespective
of the technology used to develop
that application.
What Is Watir?
Why Watir?
● It’s a free open source tool belonging to a family of Ruby.
● It supports headless browser execution.
● It supports page object design pattern.
● It supports Cucumber Integration.
● Tests can be maintained simple and flexible.
● It supports your web app no matter what technology used to develop
your app.
● It supports multiple browsers on different platforms.
● It is lightweight and easy to use.
● It supports execution in Cloud through cloud based cross browser
automation testing tools like LambdaTest.
Getting Started With Cross Browser Automation Testing Using Watir
Here are the prerequisite required for performing cross browser automation
testing using Watir on Windows:
● RubyInstaller
● Watir
● RubyMine IDE
The RubyInstaller is must because Watir supports Ruby code, so this installation
is very important before we proceed with Automation.
Step1: Installation of Ruby:
Navigate to Official Ruby Installer page here.
Click on Latest version With DEVKIT to download. Select your OS architecture type,
for e.g., I select (X64) 64 bit operating system
Setting Up Automation Environment
The setup window popups to accept license agreement, you need
to accept this and move next
I would recommend selecting all checkboxes and clicking install
button to proceed further
After installation is complete, the following window will popup to install
updated component. This is optional either you can leave it by closing
the window or hit “Enter” button to update all components.
Open command prompt in windows and enter the following command:
● ruby -version
The installation version of Ruby version is displayed in the command prompt,
which indicates Ruby installer is success.
To verify once again the installation is success and Ruby programs works fine.
Enter the following commands:
● irb
irb or IRB stands for Interactive Ruby Shell which is a REPL(read-eval print loop)
for programming in the object-oriented scripting language Ruby.
I will write a simple code that will put “lambdatest.com” to print it.
Step2: Installation of Watir:
Installation of Watir is very simple. As I mentioned in the above section to verify
Watir, you must first installed Ruby. To install, supply the below gem command:
● gem install water
gem indicates RubyGems that is a package manager for the Ruby programming
which provides a standard format of disturbing Ruby libraries.
Step 3: Installation of RubyMine IDE:
RubyMine is an IDE(Integrated Development Environment) that helps you to
write, debug and testing code for your application. Ruby also support multiple OS
like Windows, MacOS and Linux etc.
Note: RubyMine comes up with Free 30- day Trial license.
To download the RubyMine, click here
Click on the following button, which will download in your machine.
Right click on installer and run as Administrator, which pop ups the following
windows.
Click next and continue till the installation is complete and launch RubyMine
Right click on installer and run as Administrator, which pop ups the following
windows.
Click next and continue till the installation is complete and launch RubyMine
Keep default with existing plugins and click Next until you see the below window.
Click “Create New Project”
Enter project name and select “Ruby SDK” which will be available if you install
Ruby Installer.
Right click on created project and create a new directory called
“testsuites”
Create a subdirectory called “resources” under testsuites and drop
“chromedriver.exe”
To run browser based automation, chromedriver is required which is a
separate executable that WebDriver uses to control chrome. Similarly we
have different driver for each browser for eg., geckodriver for Mozila
firefox, edge driver for Microsoft Edge browsers etc.,
To download chromedriver, please visit here.
Writing Code for Sample Test
To write code in RubyMine is very simple.
Right click on testsuites and select “TestUnit Test Template”
READ COMPLETE ARTICLE
HAPPY TESTING!!
www.lambdatest.com

More Related Content

PPTX
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
PDF
React Typescript for beginners: Translator app with Microsoft cognitive services
Fabio Biondi
 
PDF
Future of Mobile Automation, Appium Steals it
Srinivasan Sekar
 
PPTX
Cross Platform Test Automation for Web and Android
GlobalLogic Ukraine
 
PPTX
BBS Selenium & Docker
Mustafa Topçuoğulları
 
PPT
Webenabled
Jason Arnold
 
PPTX
Vaadin slides for @Devoxx 2012
Nicolas Fränkel
 
PPTX
TDD on OSGi, in practice.
Elian, I.
 
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
React Typescript for beginners: Translator app with Microsoft cognitive services
Fabio Biondi
 
Future of Mobile Automation, Appium Steals it
Srinivasan Sekar
 
Cross Platform Test Automation for Web and Android
GlobalLogic Ukraine
 
BBS Selenium & Docker
Mustafa Topçuoğulları
 
Webenabled
Jason Arnold
 
Vaadin slides for @Devoxx 2012
Nicolas Fränkel
 
TDD on OSGi, in practice.
Elian, I.
 

What's hot (20)

ODP
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
PPTX
Fullstack workshop
Assaf Gannon
 
PDF
Selenium camp v1
dimakovalenko
 
PDF
High Productivity Web Development Workflow
Vũ Nguyễn
 
PDF
The swiss knife of a word press developer
Ivelina Dimova
 
PDF
Vagrant up-and-running
Joe Ferguson
 
PDF
PHP - Programming language war, does it matter
Mizno Kruge
 
PDF
Jakarta WordPress Meetup #9: Introducing VVV 2
WordPress
 
PDF
Reactjs workshop (1)
Ahmed rebai
 
PPTX
How create react app help in creating a new react applications
Concetto Labs
 
PPTX
Vsts ci cd-java
VishnuBabu S
 
PDF
Agile Systems Admin
Julian Simpson
 
PDF
Testing With Open Source
Matthias Käppler
 
PPTX
How to Install Laravel 5.7
Shubham Sunny
 
PDF
Vagrant for local and team WordPress Development
Anthony Alvarez
 
PPTX
Continuous integration
twuniversity
 
PDF
Wso2 product release webinar introducing jaggery
WSO2
 
PPTX
A walkthrough of JavaScript ES6 features
Michal Juhas
 
PDF
Test Driven Development with OSGi - Balázs Zsoldos
mfrancis
 
PDF
Modern web applications
Andrea Tino
 
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Shashikant Jagtap
 
Fullstack workshop
Assaf Gannon
 
Selenium camp v1
dimakovalenko
 
High Productivity Web Development Workflow
Vũ Nguyễn
 
The swiss knife of a word press developer
Ivelina Dimova
 
Vagrant up-and-running
Joe Ferguson
 
PHP - Programming language war, does it matter
Mizno Kruge
 
Jakarta WordPress Meetup #9: Introducing VVV 2
WordPress
 
Reactjs workshop (1)
Ahmed rebai
 
How create react app help in creating a new react applications
Concetto Labs
 
Vsts ci cd-java
VishnuBabu S
 
Agile Systems Admin
Julian Simpson
 
Testing With Open Source
Matthias Käppler
 
How to Install Laravel 5.7
Shubham Sunny
 
Vagrant for local and team WordPress Development
Anthony Alvarez
 
Continuous integration
twuniversity
 
Wso2 product release webinar introducing jaggery
WSO2
 
A walkthrough of JavaScript ES6 features
Michal Juhas
 
Test Driven Development with OSGi - Balázs Zsoldos
mfrancis
 
Modern web applications
Andrea Tino
 
Ad

Similar to Cross Browser Automation Testing Using Watir (20)

PDF
Getting Started with Playwright: A Beginner-Friendly Introduction & Setup Guide
Shubham Joshi
 
PPTX
Web development tool
Deep Bhavsar
 
PDF
SEO consultant Dubai
LampMedia Tech
 
PDF
SEO packages Dubai
LampMedia Tech
 
PPTX
7 IDEs Every React Native App Development Company Must Use (2).pptx
Softprodigy
 
DOCX
Weebly login
marvinmikkelson
 
PPT
Test Automation using Ruby, Watir, Rspec and AutoIT for GAMESCALE products te...
Sla Va
 
PPTX
Diploma 1st Year Project Internship Presentation.pptx
silentworld966
 
ODP
Spring roo for entrepreneurs
Mans Jug
 
PPT
Steps to write Selenium
Rohit Thakur
 
PPTX
Using galen framework for automated cross browser layout testing
Sarah Elson
 
PPT
Audioproject
buntfu
 
PDF
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
flufftailshop
 
PPTX
Buildmanagment tools mavenandgradle.pptx
praveena210336
 
PDF
11 Top Cross Browser Testing Tools to Know About.pdf
kalichargn70th171
 
PDF
11 Top Cross Browser Testing Tools to Know About.pdf
flufftailshop
 
PDF
Progressive Web Application by Citytech
Ritwik Das
 
PDF
Top 9 Automation Testing Tools In 2023 And Beyond.pdf
SatawareTechnologies6
 
PDF
Install Ruby on Rails Like a Pro: Effortless Guide
rorbitssoftware
 
PPTX
Blazor v1.1
Juan Luis Guerrero Minero
 
Getting Started with Playwright: A Beginner-Friendly Introduction & Setup Guide
Shubham Joshi
 
Web development tool
Deep Bhavsar
 
SEO consultant Dubai
LampMedia Tech
 
SEO packages Dubai
LampMedia Tech
 
7 IDEs Every React Native App Development Company Must Use (2).pptx
Softprodigy
 
Weebly login
marvinmikkelson
 
Test Automation using Ruby, Watir, Rspec and AutoIT for GAMESCALE products te...
Sla Va
 
Diploma 1st Year Project Internship Presentation.pptx
silentworld966
 
Spring roo for entrepreneurs
Mans Jug
 
Steps to write Selenium
Rohit Thakur
 
Using galen framework for automated cross browser layout testing
Sarah Elson
 
Audioproject
buntfu
 
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
flufftailshop
 
Buildmanagment tools mavenandgradle.pptx
praveena210336
 
11 Top Cross Browser Testing Tools to Know About.pdf
kalichargn70th171
 
11 Top Cross Browser Testing Tools to Know About.pdf
flufftailshop
 
Progressive Web Application by Citytech
Ritwik Das
 
Top 9 Automation Testing Tools In 2023 And Beyond.pdf
SatawareTechnologies6
 
Install Ruby on Rails Like a Pro: Effortless Guide
rorbitssoftware
 
Ad

More from Sarah Elson (20)

PDF
Top 5 Software Testing Myths in The Industry
Sarah Elson
 
PPTX
Metrics & Challenges for Testing Streaming Applications in 2019
Sarah Elson
 
PPTX
How to Perform Test Automation With Gauge & Selenium Framework
Sarah Elson
 
PPTX
Why You Need to Care About Automated Functional Testing in 2019
Sarah Elson
 
PPTX
Top Java Script Frameworks for 2019
Sarah Elson
 
PPTX
How to Implement Continuous Testing in Dev Ops Like a Pro
Sarah Elson
 
PPTX
CSS With Feature Detection for Cross Browser Compatibility
Sarah Elson
 
PPTX
Skyrocket Your Cross Browser Testing with Minimal Effort
Sarah Elson
 
PPTX
Selenium Web Driver Tutorial for Cross Browser Testing
Sarah Elson
 
PPTX
17 Ways to Save Time on Manual Cross Browser Testing
Sarah Elson
 
PPTX
What is Continuous Integration and Continuous Delivery
Sarah Elson
 
PPTX
Overcoming The Challenges Faced in Exploratory Testing
Sarah Elson
 
PPTX
Guide to Browser Compatibility for Online Learning Platforms
Sarah Elson
 
PDF
What is the Need for Software Testing?
Sarah Elson
 
PPTX
Top 15 Interview Questions for Manual Testers
Sarah Elson
 
PPTX
Design Patterns for Micro Service Architecture
Sarah Elson
 
PPTX
Top 13 Mistakes Committed by Angular Java script Developers
Sarah Elson
 
PPTX
Importance of a Test Management Tool for Your Project
Sarah Elson
 
PPTX
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Sarah Elson
 
PPTX
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
Sarah Elson
 
Top 5 Software Testing Myths in The Industry
Sarah Elson
 
Metrics & Challenges for Testing Streaming Applications in 2019
Sarah Elson
 
How to Perform Test Automation With Gauge & Selenium Framework
Sarah Elson
 
Why You Need to Care About Automated Functional Testing in 2019
Sarah Elson
 
Top Java Script Frameworks for 2019
Sarah Elson
 
How to Implement Continuous Testing in Dev Ops Like a Pro
Sarah Elson
 
CSS With Feature Detection for Cross Browser Compatibility
Sarah Elson
 
Skyrocket Your Cross Browser Testing with Minimal Effort
Sarah Elson
 
Selenium Web Driver Tutorial for Cross Browser Testing
Sarah Elson
 
17 Ways to Save Time on Manual Cross Browser Testing
Sarah Elson
 
What is Continuous Integration and Continuous Delivery
Sarah Elson
 
Overcoming The Challenges Faced in Exploratory Testing
Sarah Elson
 
Guide to Browser Compatibility for Online Learning Platforms
Sarah Elson
 
What is the Need for Software Testing?
Sarah Elson
 
Top 15 Interview Questions for Manual Testers
Sarah Elson
 
Design Patterns for Micro Service Architecture
Sarah Elson
 
Top 13 Mistakes Committed by Angular Java script Developers
Sarah Elson
 
Importance of a Test Management Tool for Your Project
Sarah Elson
 
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Sarah Elson
 
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
Sarah Elson
 

Recently uploaded (20)

PDF
Printable Esperanto Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Gujarati Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Burmese Myanmar Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Bulgarian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
NoHo First UMC Good News August 2025.pdf
NoHo FUMC
 
PPTX
Viral: A Study in Acts_Acts 9.1-19a_Slides.pptx
Stephen Palm
 
PPTX
Sabbath School Lesson 4, 3rd Quarter 2025.pptx
DavidSyahputra4
 
PDF
The Power of Volunteering_ Examples That Inspire Change by David Bennett Gall...
David Bennett Galloway III
 
PPTX
doing things for the Lord with all our heart is the best that we can do
Joelalisen
 
PDF
Printable Cantonese Traditional Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
الابصلمودية السنوية
Smiling Lungs
 
PDF
Rig_Veda_Volume_One_of_Four_by_Tulsi_Ram .pdf
CantodaSereia
 
PDF
Living Like Christ - Sabbath School Lesson.pdf
deexeealumbro
 
PDF
Printable Haitian Creole Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
St John's Church Parish Diary for Aug 25
Chris Lyne
 
PDF
Printable Bengali Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PPTX
Judiasm, Jewish Religion based on Islamic interpretation
mughal641
 
PPTX
Sabbath School Lesson 5, 3rd Quarter 2025.pptx
DavidSyahputra4
 
PDF
Printable Dutch Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Bosnian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Esperanto Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Gujarati Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Burmese Myanmar Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Bulgarian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
NoHo First UMC Good News August 2025.pdf
NoHo FUMC
 
Viral: A Study in Acts_Acts 9.1-19a_Slides.pptx
Stephen Palm
 
Sabbath School Lesson 4, 3rd Quarter 2025.pptx
DavidSyahputra4
 
The Power of Volunteering_ Examples That Inspire Change by David Bennett Gall...
David Bennett Galloway III
 
doing things for the Lord with all our heart is the best that we can do
Joelalisen
 
Printable Cantonese Traditional Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
الابصلمودية السنوية
Smiling Lungs
 
Rig_Veda_Volume_One_of_Four_by_Tulsi_Ram .pdf
CantodaSereia
 
Living Like Christ - Sabbath School Lesson.pdf
deexeealumbro
 
Printable Haitian Creole Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
St John's Church Parish Diary for Aug 25
Chris Lyne
 
Printable Bengali Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Judiasm, Jewish Religion based on Islamic interpretation
mughal641
 
Sabbath School Lesson 5, 3rd Quarter 2025.pptx
DavidSyahputra4
 
Printable Dutch Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Bosnian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 

Cross Browser Automation Testing Using Watir

  • 3. What Is Browser Automation? Browsers have become indispensable to our daily basis productivity. We explore, learn, shop, invest and do a lot more with browsers. There are times when we feel the need for browsers to automate our repetitive tasks. Imagine how cool that would be? Is it possible? Yes
  • 4. Now, there are thousands of browsers available on the internet and your website may render in a unique manner on every browser or browser version. It could be very complex to test your website across every single one of them. Cross browser automation testing is to verify your application renders seamlessly across different browsers and its combination version. What Is Cross Browser Automation Testing?
  • 5. Watir is an open source Ruby Libraries which helps to achieve cross browser automation testing. Watir supports Ruby which is object oriented language and typically it’s simpler and faster than other languages. The good thing about Watir is, it supports any web application irrespective of the technology used to develop that application. What Is Watir?
  • 6. Why Watir? ● It’s a free open source tool belonging to a family of Ruby. ● It supports headless browser execution. ● It supports page object design pattern. ● It supports Cucumber Integration. ● Tests can be maintained simple and flexible. ● It supports your web app no matter what technology used to develop your app. ● It supports multiple browsers on different platforms. ● It is lightweight and easy to use. ● It supports execution in Cloud through cloud based cross browser automation testing tools like LambdaTest.
  • 7. Getting Started With Cross Browser Automation Testing Using Watir Here are the prerequisite required for performing cross browser automation testing using Watir on Windows: ● RubyInstaller ● Watir ● RubyMine IDE The RubyInstaller is must because Watir supports Ruby code, so this installation is very important before we proceed with Automation.
  • 8. Step1: Installation of Ruby: Navigate to Official Ruby Installer page here. Click on Latest version With DEVKIT to download. Select your OS architecture type, for e.g., I select (X64) 64 bit operating system Setting Up Automation Environment
  • 9. The setup window popups to accept license agreement, you need to accept this and move next
  • 10. I would recommend selecting all checkboxes and clicking install button to proceed further
  • 11. After installation is complete, the following window will popup to install updated component. This is optional either you can leave it by closing the window or hit “Enter” button to update all components.
  • 12. Open command prompt in windows and enter the following command: ● ruby -version The installation version of Ruby version is displayed in the command prompt, which indicates Ruby installer is success. To verify once again the installation is success and Ruby programs works fine. Enter the following commands: ● irb irb or IRB stands for Interactive Ruby Shell which is a REPL(read-eval print loop) for programming in the object-oriented scripting language Ruby. I will write a simple code that will put “lambdatest.com” to print it.
  • 13. Step2: Installation of Watir: Installation of Watir is very simple. As I mentioned in the above section to verify Watir, you must first installed Ruby. To install, supply the below gem command: ● gem install water gem indicates RubyGems that is a package manager for the Ruby programming which provides a standard format of disturbing Ruby libraries.
  • 14. Step 3: Installation of RubyMine IDE: RubyMine is an IDE(Integrated Development Environment) that helps you to write, debug and testing code for your application. Ruby also support multiple OS like Windows, MacOS and Linux etc. Note: RubyMine comes up with Free 30- day Trial license. To download the RubyMine, click here Click on the following button, which will download in your machine. Right click on installer and run as Administrator, which pop ups the following windows. Click next and continue till the installation is complete and launch RubyMine
  • 15. Right click on installer and run as Administrator, which pop ups the following windows. Click next and continue till the installation is complete and launch RubyMine
  • 16. Keep default with existing plugins and click Next until you see the below window. Click “Create New Project”
  • 17. Enter project name and select “Ruby SDK” which will be available if you install Ruby Installer.
  • 18. Right click on created project and create a new directory called “testsuites” Create a subdirectory called “resources” under testsuites and drop “chromedriver.exe” To run browser based automation, chromedriver is required which is a separate executable that WebDriver uses to control chrome. Similarly we have different driver for each browser for eg., geckodriver for Mozila firefox, edge driver for Microsoft Edge browsers etc., To download chromedriver, please visit here.
  • 19. Writing Code for Sample Test To write code in RubyMine is very simple. Right click on testsuites and select “TestUnit Test Template”