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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -