

Scenario 1: Client has given access for QA environment for my window user i.e., ‘myuser’ but can test only few scenarios. But I’m unable to use this for my scenario as its little different. Yes my window user is ‘myuser’ so if I create any profile its been under ‘myuser’ with ‘Profile N’. [: unknown error: cannot create default profile directory[0 39m WebDriver driver = new ChromeDriver(chromeProfile) ĭriver.get(“ DriverFactory.changeWebDriver(driver) Here you specify the actual profile folder (Profile 2)ĬhromeProfile.addArguments(“profile-directory=Default”) String chromeProfilePath = “C:\Users\myuser\AppData\Local\Google\Chrome\User Data\” -> I can only access profiles for default user ‘myuser’ folderĬhromeOptions chromeProfile = new ChromeOptions() ĬhromeProfile.addArguments("–no-sandbox") ĬhromeProfile.addArguments("–disable-extensions") ĬhromeProfile.addArguments(“start-maximized”) ĬhromeProfile.addArguments("–disable-popup-blocking") ĬhromeProfile.addArguments("–disable-dev-shm-usage")ĬtExperimentalOption(“useAutomationExtension”, false)ĬhromeProfile.addArguments(“user-data-dir=” + chromeProfilePath) String chromeProfilePath = “C:\Users\test01\AppData\Local\Google\Chrome\User Data\” The below profile path is the one that got created when i did run as different user String pathToChromeDriver = “C:\Automation\Katalon_Studio_Windows_64-5.9.1\configuration\resources\drivers\chromedriver_win32\chromedriver.exe”

