gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
MIT License
674 stars 62 forks source link

Use Chrome's new Headless mode #865

Closed vitaly-kiselev-qa closed 3 months ago

vitaly-kiselev-qa commented 4 months ago

Contribution

Describe the user story

Chrome's Headless mode has got an upgrade recently: https://developer.chrome.com/docs/chromium/new-headless

It states that the new Headless mode is better for automated tests. Is it going to be used in Hermione?

I compared the automated test results with headless option to the results of the headless=new test run. There were significantly less failed tests in the second case . So it looks like the new Headless mode is much more compatible with the headful mode.

Describe the solution you'd like

Support the new Chrome's Headless mode.

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response

sipayRT commented 3 months ago

Hi

Thank you for the information. I read the description - it sounds really cool. We'll take it in our plans

But right now, instead of using the headless option, you can set the desired value in the browser arguments:

chrome: {
    desiredCapabilities: {
        browserName: 'chrome',
        'goog:chromeOptions': {
            args: ['--headless=new']
        }
    },
}
sipayRT commented 3 months ago

you can try it in hermione@8.5.0

vitaly-kiselev-qa commented 3 months ago

@sipayRT It works great! Thank you!