How to run the UI script in Headless mode for edge browser

Viewed 37

I have an scenario where I want to trigger the UI script in Microsoft Edge with headless mode. How to achieve this?

* configure driver = { type: 'msedgedriver', webDriverSession: { capabilities: { browserName: 'edge' } }, executable: '#(executable)' } 
1 Answers

Have you tried passing the headless flag inside the capabilities? Something like this

* configure driver = { type: 'msedgedriver', webDriverSession: { capabilities: { browserName: 'edge', headless: true } }, executable: '#(executable)'} 

Taken from the documentation mentioned here.

Related