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 workaround for this?

Need: Take screenshot is works well on firefox, works in chrome also, 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.

2
  • Hey Sameer- can you add some more explanation Jan 27, 2016 at 7:44
  • @log_file question updated. Jan 27, 2016 at 8:39

1 Answer 1

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 and acknowledge you have read our privacy policy.

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