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

Not able to capture full screenshot after scrolling down on ubuntu using ashot #124

Open
swaradewarde opened this issue Jun 5, 2018 · 1 comment

Comments

@swaradewarde
Copy link

Hi guys,
I need to take full screenshot of a web application by scrolling down. I have used Ashot to achieve same, check below code

final Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportRetina(100,0,0,2)).takeScreenshot(driver);
final BufferedImage image = screenshot.getImage();
try {
ImageIO.write(image, "PNG", new File(fileNameToCopy));
} catch (IOException e) {
e.printStackTrace();
}

This code is working well on my local (mac osx) however when i am running same code on jenkins server (ubuntu) the screenshot captured has some background black spaces. Attaching screenshots taken on both local and on jenkins server.

Could you pls tell me what could be the issue.

Thanks in advance.

environment details with screenshots mentioned below.

Meta -

jenkins box details:
OS: Linux version 4.4.0-1055-aws (Ubuntu 5.4.0-6ubuntu1~16.04.9)
Selenium Version: 3.5.3
Browser: Mozilla Firefox 54.0
geckodriver: geckodriver-v0.17.0-linux64.tar.gz
jenkins_ooredommappcataloguepageandroid_screenshot 1

local machine details
OS: macOS Sierra
Selenium Version: 3.5.3
Browser: Mozilla Firefox 54.0
geckodriver: geckodriver-v0.17.0
local_ooredommappcataloguepageandroid_screenshot

@fagnerpaes
Copy link

Hi @swaradewarde!

Did you get resolve that problem? Because I have be this problem too. Thanks!

Details
OS: Linux version Ubuntu 16.04
Selenium Version: 3.7.1
Browser: Google Chrome 69 (Headless)
chrome drive: 2.4.1

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