Skip to content

sridharbandi/Selenium-Ruby-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Ruby Unit Test Template with Page Object Model

To automate Selenium Webdriver binaries management in runtime am using webdrivermanager, an excellent library by jeffnyman

How to use?

Create the Page Objects of your Web application under lib/pageobjects package, call those Page Objects in tests under test package (Sample Page Objects, testcase included in this template)

How to run?

To install the dependencies issue the below command in project root directory

bundler install

To run the tests issue the below commands in project root directory

ruby -Ilib:test test/my_test.rb 

By default it runs in Chrome browser, you can specify which browser to use as well

ruby -Ilib:test test/my_test.rb firefox

Currently browsers added in this template are

  • chrome
  • firefox
  • edge
  • ie

Feel free to modify it to your own needs :)

Releases

No releases published

Packages

No packages published