How can I enable headless browser testing?

How can I enable headless browser testing?

Hi Macy,

While writing the desired capabilities in your code, you can enable Headless Browser in testing, by adding the below syntax:

capabilities.setCapability("headless",true);