'How to set edge preferences as command line arguments for edge browser

piece of code: for chrome :

chrome_pref = set_browser_preference(webdriver, 'Chrome', dwnld_pref_flag) context.driver = webdriver.Chrome(ChromeDriverManager().install(),chrome_options=chrome_pref)

but for edge: edge_pref = set_browser_preference(webdriver, 'Edge', dwnld_pref_flag) context.driver = webdriver.Edge(EdgeChromiumDriverManager().install(), *options=edge_pref)

warning shown as remove the argument. what exactly im missing could you please support.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source