Moved Cucumber hooks to hooks.rb file

Bug: 49812
Change-Id: Ib927b824a8854d1c4257a17db582595a22d70470
This commit is contained in:
Zeljko Filipin
2013-10-01 16:36:38 +02:00
committed by Cmcmahon
parent 2c4a906889
commit 5a808ef394
4 changed files with 47 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
Given(/^that my browser's accept language is (.+)$/) do |language|
@browser = browser(environment, test_name(@scenario), ENV['SAUCE_ONDEMAND_USERNAME'], ENV['SAUCE_ONDEMAND_ACCESS_KEY'], language)
@browser = browser(environment, test_name(@scenario), language)
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
end