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

Screenshots with getBytes() don't have title when it is set #97

Closed
anna-shchurok opened this issue Feb 1, 2022 · 4 comments
Closed

Comments

@anna-shchurok
Copy link
Collaborator

Code like
Shutterbug.shootPage(driver, Capture.FULL).withTitle("Title goes here").getBytes()
doesn't return screenshot with title added
although code like
Shutterbug.shootPage(driver, Capture.FULL).withTitle("Title goes here").save()
saves screenshot with title added

@anna-shchurok
Copy link
Collaborator Author

Hi me,

fixed issue in #98,

error appeared with new version of Shutterbug
Could not initialize class sun.awt.X11GraphicsEnvironment
setting property -Djava.awt.headless=true omits the problem

@glibas
Copy link
Member

glibas commented Feb 8, 2022

Hi @anna-shchurok thank you very much for contribution.

Shall we set java.awt.headless=true programmatically while initialiszing Shutterbug? e.g. Shutterbug.headless()...

@anna-shchurok
Copy link
Collaborator Author

@glib-briia
I am for option when it is added not optionally. I mean in what cases people would care if AWT headless or not and also writing headless each time probably would be excessive.
or you don't think so?

@glibas
Copy link
Member

glibas commented Feb 9, 2022

@anna-shchurok agreed. Lets have it permanently set to true and provide option of disabling by Shutterbug.headless(false)

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