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 #5992

Closed
swaradewarde opened this issue Jun 5, 2018 · 2 comments

Comments

@swaradewarde
Copy link

swaradewarde commented Jun 5, 2018

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

@barancev
Copy link
Member

barancev commented Jun 5, 2018

Please report this issue to Ashot, it's not developed by Selenium team.

@barancev barancev closed this as completed Jun 5, 2018
@swaradewarde
Copy link
Author

ok thank you barancev (Y)

@lock lock bot locked and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants