edge_options.add_experimental_option("useAutomationExtension", False) edge_options.add_experimental_option("excludeSwitches", ["enable-automation"])
Add these two arguments to your edge driver options will solve your problem.