How to open MS Edge with specific profile with selenium webDriver?
问题 I am running automation on the edge browser. Edge browser supports profile and whenever i launch the edge from webdriver, it create new profile. Is there any way I can set the option to launch edge with given user profile ? 回答1: I use Java language as an example. You could use user-data-dir and profile-directory to use specific profile to launch Edge with Selenium. The sample code is like below: System.setProperty("webdriver.edge.driver", "your\\path\\to\\edge\\webdriver\\msedgedriver.exe");