In this post we are going to discuss about running Chrome in headless mode with Selenium C#
Chrome headless
Headless Chrome is a way to run Chrome browser without the actual browser UI being spawned. Essentially its running Chrome without chrome! It brings all modern web platform features provided by Chromium and the Blink rendering engine to the command line and automation testing tool such as Selenium in our case
Where is it useful ?
A headless browser is a great tool for automated testing and server environments where you don’t need a visible UI shell.
And again its not a completely new technology, since there are other big players in this area such as
PhantomJS
HTMLUnitDriver
So when is Chrome Headless available ?
Chrome Headless is supported from Chrome 59.x and above.
The current stable version for Windows 10 is Chrome 60.x
ChromeDriver v2.30 and above supports headless mode
What changes should I make in my Existing Selenium test ?
https://gist.github.com/executeautomation/b7c7da64027b9d2d011ec80006f46e3b
Here is the complete video of the above discussion
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything I should update in this post.
Thanks,
Karthik KK