In
this blog, we are going to learn how we can execute Protractor Automation Test
in Headless mode or browser using Chrome.
To
use Chrome browser we need to add below arguments in the Configuration file
--disable-gpu – It is required only when you are using chrome 58 or below.
--window-size=800x600 – Setting the browser size to 800X600
(With headless chrome, we cannot change the browser size at run time. So we need to set the size of the browser while initiating the driver itself)
Result of above code execution would be like: