It will be great if you can help me fix issue I am facing around usage of default profile for chrome browser in mac .
I am trying to access https://localintanetsite.com
I wanted to use default profile of a user for chrome browser . I used below path to access default profile for user.When browser opens up it doesn’t use my default profile and launches browser with new profile which prompts for user name and password . Any idea how to use default profile data for chrome browser in mac .
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=/Users/XYZ/Library/Application Support/Google/Chrome/Default");
WebDriver driver = new ChromeDriver(options);
driver.get("https://localintanetsite.com");
Note : I am able to successfully do all these steps in windows . I am able to access my default profile data in windows so that when chrome browser gets invoked to open fusion url , it doesn’t ask for userid/pwd and uses my default LDAP credentials . I wanted to achieve same in mac which somehow doesn’t work with code I pasted below .