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 html2canvas_payload
        case @browser.driver.browser
        when :firefox
          path = File.join(WatirScreenshotStitch::Utilities.directory, "vendor/html2canvas-0.4.1.js")
          File.read(path)
        else
          path = File.join(WatirScreenshotStitch::Utilities.directory, "vendor/html2canvas.js")
          File.read(path)
        end
      end
def html2canvas_payload case @browser . driver . browser when :firefox path = File . join ( WatirScreenshotStitch :: Utilities . directory , "vendor/html2canvas-0.4.1.js" ) File . read ( path ) else path = File . join ( WatirScreenshotStitch :: Utilities . directory , "vendor/html2canvas.js" ) File . read ( path ) end end
Represents stitched together screenshot and writes to file.
Represents stitched together screenshot and writes to file .
<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