Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

update to new headless size format #326

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

Merged
umihico merged 1 commit into umihico:main from mylesboone:update_screen_option
Jun 24, 2025

Conversation

@mylesboone
Copy link
Contributor

@mylesboone mylesboone commented Jun 24, 2025
edited
Loading

The new chromedriver headless option seems to honor the width but not the height (scaled non-linearly)
For example, passing --window-size=1280,1696 will result in a window size of 1280x1504

However, using --window-size=1280x1696, the entire option is disregarded.

headless seems to honor the height but not the width (scaled
non-linearly)
Copy link
Owner

@umihico umihico left a comment

Choose a reason for hiding this comment

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

✅ Change Approved - Correct Format According to Official Documentation

Great catch! This change aligns with the official Chrome command-line argument specification.

Research Summary

Official Format: --window-size=width,height (comma-separated)

  • Correct: --window-size=1280,1696
  • Incorrect: --window-size=1280x1696

Evidence from Official Sources

  1. Chromium Command Line Switches

  2. ChromeDriver Official Documentation

  3. Selenium Chrome Options Documentation

  4. Chrome DevTools Protocol

  5. Stack Overflow Community Consensus

Why This Fix Works

The new headless mode (--headless=new) appears to be more strict about following official Chrome argument formats. The comma format:

  • Follows Chrome's official specification per Chromium documentation
  • Ensures consistent behavior across Chrome versions
  • Provides better compatibility with Selenium WebDriver
  • Resolves the scaling issues mentioned in your testing

Impact

This change should resolve the window size scaling issues you encountered with the new headless mode while maintaining compatibility with the official Chrome argument specification documented at peter.sh and chromium.org.

Thanks for identifying and fixing this format inconsistency! 🎯

@umihico umihico merged commit 2435881 into umihico:main Jun 24, 2025
@mylesboone mylesboone deleted the update_screen_option branch June 24, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@umihico umihico umihico approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /