Echo, Flow, and MobileFrontend today all duplicate code that looks something like
Given(/^I am using user agent "(.+)"$/) do |user_agent| @user_agent = user_agent @browser = browser(test_name(@scenario), {user_agent: user_agent}) @browser.window.resize_to(480, 800) $session_id = @browser.driver.instance_variable_get(:@bridge).session_id end
and other repos will need it soon also. This should be shared code, we should not have to duplicate it in all the repos