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 save_stitch(path, browser = @browser, opts = {})
      return browser.screenshot.save(path) if base64_capable?
      @options = opts
      @path = path
      deprecate_browser(browser, (__LINE__-3))
      calculate_dimensions
      return self.save(@path) if (one_shot? || bug_shot?)
      build_canvas
      gather_slices
      stitch_together
      @combined_screenshot.write @path
    end
def save_stitch ( path , browser = @browser , opts = { } ) return browser . screenshot . save ( path ) if base64_capable? @options = opts @path = path deprecate_browser ( browser , ( __LINE__ - 3 ) ) calculate_dimensions return self . save ( @path ) if ( one_shot? || bug_shot? ) build_canvas gather_slices stitch_together @combined_screenshot . write @path end
Represents stitched together screenshot and writes to file.
Represents stitched together screenshot and writes to file .
path
<not_specific>
browser
<not_specific>
opts
<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