how to use puppeteer in selenium automation testing for head less chrome
Puppeteer is replacement for selenium running only on Chrome. It's not possible to run puppeteer from selenium. Puppeteer is designed only for chrome and run only in Node.js environment. If you are interested in running chrome headless from selenium this thread can be valuable for you.
For Selenium Headless execution you can use following code or watch videohttps://www.youtube.com/watch?v=iNZSLYkTBSE
Initialize driver with option
var chromeOptions = new ChromeOptions();chromeOptions.AddArguments("Headless");IWebDriver driver = new ChromeDriver(chromeOptions);