Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In whole-page screenshots with Firefox only the upper part of the page is captured #64

Closed
kema91 opened this issue Nov 7, 2019 · 1 comment

Comments

@kema91
Copy link

kema91 commented Nov 7, 2019

Hi,

I'm dealing with the problem that when taking a whole page screenshot, only the upper part of the viewport is taken.

2019_11_07_14_13_58_326

Steps to reproduce

Used versions:

Firefox version 70.0.1 (64-Bit)
geckodriver-v0.26.0-macos
Java OpenJDK 11
macOS Catalina Version 10.15.1
selenium-java version 3.141.59
selenium-shutterbug version 0.9.3

Here's a snippet of the relevant code:

final FirefoxOptions opts = new FirefoxOptions();
opts.addArguments( "--headless", "--window-size=1200,800" );
driver = new FirefoxDriver( opts );

driver.get( "https://stackoverflow.com" );
Shutterbug.shootPage( driver, ScrollStrategy.WHOLE_PAGE, 500, true ).save( "/Users/abc/Downloads/whole_page" );

driver.quit();

Thanks in advance.

@glibas
Copy link
Member

glibas commented Aug 11, 2020

Should be fixed with new Capture strategies in v1.0

@glibas glibas closed this as completed Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants