lib/scoutui/commands/strategy.rb in scoutui-2.0.4.1.pre vs lib/scoutui/commands/strategy.rb in scoutui-2.0.4.2.pre

- old
+ new

@@ -237,11 +237,11 @@ # The following print to STDOUT is useful when running on JENKINS with SauceLabs plugin # Reference: # https://wiki.saucelabs.com/display/DOCS/Setting+Up+Reporting+between+Sauce+Labs+and+Jenkins puts "SauceOnDemandSessionID=#{@drv.session_id} job-name=#{caps[:name]}" - elsif !caps.nil? + elsif !caps.nil? && caps.has_key?(:browser) && caps[:browser].match(/(phantom|phantomjs|ghost|ghostdriver)/i) _YosemiteChromeBeta='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36' _cap=Selenium::WebDriver::Remote::Capabilities.phantomjs('phantomjs.page.settings.userAgent' => _YosemiteChromeBeta) if caps.has_key?(:browser) && caps[:browser].match(/(phantom|phantomjs|ghost|ghostdriver)/i) @@ -262,9 +262,11 @@ end elsif browserType.match(/(phantom|phantomjs|ghost|ghostdriver)/i) + + puts __FILE__ + (__LINE__).to_s + " => Headless testing" selenium_server=Scoutui::Utils::TestUtils.instance.getSeleniumServer() selenium_server='http://localhost:8001' if selenium_server.nil? ##