This another way to install chrome agent using the YAML FILE
To install the Chrome Azure Agent, follow these steps:
- Navigate to the Azure DevOps Marketplace and download the latest Agent.
- Extract the Agent and run the configuration script (config.cmd or config.sh depending on your OS).
- Register the Agent with your Azure DevOps organization and configure the pool.
To configure the Chrome Azure Agent, you need to enable the Chrome Headless mode in your pipeline. Follow these steps:
Create or update your YAML pipeline file and include the --no-sandbox and --headless flags.
<code>
steps:
- task: ChromeHeadless@1
inputs:
chromeVersion: 'latest'
enableSandbox: true
headless: true
- script: npm run test:chromium </script>
If you found the information useful, please accept the answer on the post to let us know.
Thank You.