lib/scoutui/commands/strategy.rb in scoutui-2.0.3.12.pre vs lib/scoutui/commands/strategy.rb in scoutui-2.0.3.13.pre

- old
+ new

@@ -246,9 +246,16 @@ puts "SauceOnDemandSessionID=#{@drv.session_id} job-name=#{caps[:name]}" else Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Create WebDriver: #{browserType.to_s}" @drv=Selenium::WebDriver.for browserType.to_sym, :profile => @profile + + _viewport = Scoutui::Utils::TestUtils.instance.getViewPort() + if !_viewport.nil? + target_size = Selenium::WebDriver::Dimension.new(_viewport[:width], _viewport[:height]) + @drv.manage.window.size = target_size + end + end end end