lib/watir-screenshot-stitch.rb
#
# Represents stitched together screenshot and writes to file.
#
# @example
#   opts = {:page_height_limit => 5000}
#   browser.screenshot.save_stitch("path/abc.png", browser, opts)
#
# @param [String] path
# @deprecated
#   @param [Watir::Browser] browser
# @param [Hash] opts
#
Represents stitched together screenshot and writes to file.
Represents stitched together screenshot and writes to file .
def deprecate_browser(browser, line)
        return unless browser
        warn "#{DateTime.now.strftime("%F %T")} WARN Watir Screenshot Stitch [DEPRECATION] Passing the browser is deprecated and will no longer work in version 0.7.0 /lib/watir-screenshot-stitch.rb:#{line}"
        @browser = browser
      end
def deprecate_browser ( browser , line ) return unless browser warn "#{DateTime.now.strftime("%F %T")} WARN Watir Screenshot Stitch [DEPRECATION] Passing the browser is deprecated and will no longer work in version 0.7.0 /lib/watir-screenshot-stitch.rb:#{line}" @browser = browser end
Represents stitched together screenshot and writes to file.
Represents stitched together screenshot and writes to file .
browser
<not_specific>
line
<not_specific>
<not_specific>
None
example
opts = {:page_height_limit => 5000} browser.screenshot.save_stitch("path/abc.png", browser, opts)
opts = { : page_height_limit = > 5000 } browser . screenshot . save_stitch ( " path / abc . png " browser opts )
deprecated
@param [Watir::Browser] browser
@param [ Watir :: Browser ] browser