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

Fullpage SS Changes #51

Merged
merged 17 commits into from
Mar 3, 2023
Merged

Fullpage SS Changes #51

merged 17 commits into from
Mar 3, 2023

Conversation

prklm10
Copy link
Contributor

@prklm10 prklm10 commented Feb 28, 2023

Added changes required for fullpage SS

@pankaj443 pankaj443 changed the title New temp endpoint Fullpage SS Changes Feb 28, 2023
@pankaj443 pankaj443 marked this pull request as ready for review February 28, 2023 12:15
Comment on lines 105 to 109
if (options != null) {
provider.screenshot(name, options.getDeviceName(), options.getStatusBarHeight(),
options.getNavBarHeight(), options.getOrientation(), fullScreen);
provider.screenshot(name, options, fullScreen);
} else {
provider.screenshot(name, null, null, null, null,
fullScreen);
provider.screenshot(name, new ScreenshotOptions(), fullScreen);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe

options ||= new ScreenshotOptions();
provider.screenshot(name, options, fullScreen);

return tiles;
}

public String screenshot(String name, ScreenshotOptions options, Boolean fullScreen) {
Copy link
Collaborator

@ninadbstack ninadbstack Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good refactor, I would want to make same for c# as well. Btw you can add fullScreen to options as well. Do not change customer side screenshot function though

@pankaj443 pankaj443 merged commit 9e425df into master Mar 3, 2023
@pankaj443 pankaj443 deleted the new-temp-endpoint branch March 3, 2023 09:31
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

Successfully merging this pull request may close these issues.

3 participants