1

I want to use chrome Plugins like what font, full page Screen capture. in one of my project, can we write the code for it? using Selenium web-driver + java.
i am still on search, is there any work around for this?.

Need: take screen shot is works well on fire fox but in chrome also works but it takes image of only visible part not the full page, so i want to use chrome Plugins to make error reporting will be easy.

  • Hey Sameer- can you add some more explanation – demouser123 Jan 27 '16 at 7:44
  • @log_file question updated. – sameer joshi Jan 27 '16 at 8:39
1

A work around I have heard of people doing that wouldn't require any chrome extensions is to resize the window to a large resolution. If the page in question has a set width, then you can resize the window to that, and then make it very long.

import org.openqa.selenium.Dimension;

Dimension screenSize = new Dimension(600, 5000);
webDriver.manage().window().setSize(screenSize);

This won't give you a perfectly sized screenshot that matches the page all the time, and there is a risk that you may still not get the entire page if you're not generous enough. But this could help you act as a temporary solution that doesn't require much work to accomplish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.