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.

Gryu
1811 silver badge14 bronze badges
asked Jan 27, 2016 at 5:49
2
  • Hey Sameer- can you add some more explanation Commented Jan 27, 2016 at 7:44
  • @log_file question updated. Commented 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.

answered Mar 15, 2016 at 21:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.