Skip to content

Commit

Permalink
updated to start browser based on env
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Aug 31, 2011
1 parent daf7ef1 commit aa0f67e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions features/support/env.rb
Expand Up @@ -3,3 +3,14 @@
require 'rspec/expectations'
require 'watir-webdriver'
require 'selenium-webdriver'
require 'page-object'


Before do
@browser = Watir::Browser.new :ie if ENV['DRIVER'] == 'WATIR'
@browser = Selenium::WebDriver.for :ie if ENV['DRIVER'] == 'SELENIUM'
end

After do
@browser.close
end

0 comments on commit aa0f67e

Please sign in to comment.