Skip to content

Comments

windowDimensionFix#298

Merged
itsankit-google merged 1 commit intocdapio:developfrom
cloudsufi:maxwindowfix
Feb 19, 2026
Merged

windowDimensionFix#298
itsankit-google merged 1 commit intocdapio:developfrom
cloudsufi:maxwindowfix

Conversation

@itsmekumari
Copy link
Contributor

@itsmekumari itsmekumari commented Feb 18, 2026

This PR addresses the framework-level issue where the browser window was failing to scale correctly during execution.

Changes
Updated Chrome Headless Mode: Migrated from the legacy headless argument to --headless=new. This ensures better compatibility with the latest Chrome versions and to ensure consistency.

Corrected Resolution Format: Updated the configuration file to define screen dimensions using comma-separated values (1920,1080) instead of the 1920X1080 format to align with framework parsing requirements.

Removed the maximize() call. Since the window size is now correctly defined via config

@psainics psainics added the build label Feb 18, 2026
@AnkitCLI AnkitCLI marked this pull request as ready for review February 19, 2026 01:43
chromeOptions.addArguments("--headless");
chromeOptions.addArguments("--window-size=" + SeleniumHelper.readParameters("windowSize"));
// chromeOptions.addArguments("--headless");
// chromeOptions.addArguments("--window-size=" + SeleniumHelper.readParameters("windowSize"));
Copy link
Member

Choose a reason for hiding this comment

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

remove these comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the comments.

Copy link
Member

@itsankit-google itsankit-google left a comment

Choose a reason for hiding this comment

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

Please add a PR description explaining the changes and update PR title.

// chromeOptions.addArguments("--headless");
// chromeOptions.addArguments("--window-size=" + SeleniumHelper.readParameters("windowSize"));
chromeOptions.addArguments("--headless=new");
chromeOptions.addArguments("--window-size=1920,1080");
Copy link
Member

Choose a reason for hiding this comment

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

why are these not coming from properties class?

can we update the windowSize here :

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@AnkitCLI AnkitCLI changed the title testwindowfix windowDimensionFix Feb 19, 2026
@itsmekumari
Copy link
Contributor Author

Please add a PR description explaining the changes and update PR title.

Added the PR description and title.

@itsankit-google itsankit-google merged commit fec1d98 into cdapio:develop Feb 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants