Based on your description, I'm afraid I can't reproduce your issue (remove the argument?). In your code, there seems to be some problem, eg:
context.driver = webdriver.Edge(EdgeChromiumDriverManager().install(), *options=edge_pref)
What is the *
symbol in this line? Error in post editing?
Second, I'm not sure about the version of webdriver_manager you're using, it might also have some issues like this thread.
I created a simple demo, it works well:
from selenium import webdriver
from selenium.webdriver.edge import service
from webdriver_manager.microsoft import EdgeChromiumDriverManager
edgeOption = webdriver.EdgeOptions()
edgeOption.add_argument("start-maximized")
edgeOption.binary_location = r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
driver = webdriver.Edge(EdgeChromiumDriverManager(log_level=20).install(),options=edgeOption)
driver.get("https://www.google.com")
If I've misunderstood something, please provide more details, such as a code sample that reproduces the problem, and any error messages.