Skip to content

Instantly share code, notes, and snippets.

@rahulmr
Forked from SarahElson/env.rb
Created September 28, 2022 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulmr/0e5456e45ae8bf415bf5ab95db680e20 to your computer and use it in GitHub Desktop.
Save rahulmr/0e5456e45ae8bf415bf5ab95db680e20 to your computer and use it in GitHub Desktop.
How To Implement Data Tables In Cucumber Using Selenium Ruby
#/support/env.rb
require 'rubygems'
require 'watir'
Before do |scenario|
$browser = Watir::Browser.new :firefox
$browser.driver.manage.window.maximize
end
After do |scenario|
$browser.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment