With Chrome you can add options when creating the driver. You just do
options = Options()
options.headless = True
driver = webdriver.Chrome(PATH\TO\DRIVER, options=options)
But for some reason when trying to do the same with Microsoft Edge
options = Options()
options.headless = True
driver = webdriver.Edge(PATH\TO\DRIVER, options=options)
I get this error
TypeError: __init__() got an unexpected keyword argument 'options'
For some reason Edge's driver doesn't accept any other parameters than the file path. Is there any way to run Edge headless and add more options just like in Chrome?