Full page Screenshot with mechanize in ruby -
i have page , want take full page screenshot. have function in capybara/poltergeist save_screenshot. there in mechanize?
so guess figured out..
i used https://github.com/csquared/imgkit gem converts html image.
kit = imgkit.new(page.body) file = kit.to_file('path file/image.png')
Comments
Post a Comment