- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 8.6k
 
Change flag for Chrome/Edge headless mode in tests #15829
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
Conversation
          PR Reviewer Guide 🔍Here are some key observations to aid the review process: 
  | 
    
          PR Code Suggestions ✨No code suggestions found for the PR.  | 
    
| 
           We should probably update the docs to mention this. Specifically:  | 
    
          CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure: 
  | 
    
| 
           Deleting this PR so I can resubmit it from own fork.  | 
    
User description
💥 What does this PR do?
This PR changes the flag for setting headless mode in Chrome/Edge from
--headless=newto--headlessin places where it was used in internal tests.Since Chrome 132, "new" headless mode is the default and
--headless=newwill eventually be removed.https://developer.chrome.com/blog/removing-headless-old-from-chrome
🔄 Types of changes
PR Type
tests
Description
Update headless mode flag for Chrome and Edge tests
Replace
--headless=newwith--headlessin test configurationsAligns with Chrome 132+ default headless behavior
Changes walkthrough 📝
EdgeDriverFunctionalTest.java
Update Edge headless flag in functional testjava/test/org/openqa/selenium/edge/EdgeDriverFunctionalTest.java
--headless=newto--headlessintest.
Browser.java
Change headless flag for Chrome and Edge in Java test driverjava/test/org/openqa/selenium/testing/drivers/Browser.java
--headless=newto--headlessin test capabilities.conftest.py
Update headless flag for Chrome and Edge in Python testspy/conftest.py
--headless=newto--headlessin Python test setup.