From aa0f67ead7c12744413781e2017dfc4b62390bb2 Mon Sep 17 00:00:00 2001 From: cheezy Date: Wed, 31 Aug 2011 14:40:48 -0400 Subject: [PATCH] updated to start browser based on env --- features/support/env.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/features/support/env.rb b/features/support/env.rb index 4c9d4e4..b60f110 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -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 \ No newline at end of file