How to load a profile/extensions using Desired Capabilities?


Now that the desired capabilities are working again on chrome, I tried loading a specific profile using args[user-data-dir=folder], but it is actually creating a new default profile in that folder…

Also, I tried loading extensions, but the only solution I found was this : javascript - Is it possible to add a plugin to chromedriver under a protractor test? - Stack Overflow

So I used the argument args[load-extension=extension_folder], which did nothing because switches are activated by default (see chrome://version) :
--chrome.switches --disable-background-networking --disable-browser-side-navigation --disable-client-side-phishing-detection --disable-default-apps --disable-extensions --disable-extensions-except="C:\Users\xxxx\AppData\Local\Temp\scoped_dir14836_7657\internal" --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=0 --metrics-recording-only --no-first-run --no-proxy-server --password-store=basic --remote-debugging-port=xxxxx --safebrowsing-disable-auto-update --start-maximized --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data\Profile 3" --flag-switches-begin --flag-switches-end

So how do I get out of this mess :blush: ?

Okay, I simply needed to do it like this :

user-data-dir="C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data
profile-directory=Profile 3

…but now the test will not start :’)

Is there a resource somewhere on getting rolling with desired capabilities? There seem to be a lot of issues with it.

Coming from Watir and Capybara, I have been creating and using user profile folders for Chrome to remember active logins and avoid repeat sign-ins.
Profile doesn’t seem to be saving in Katalon.
I can’t seem to get a simple tests to work either, like disabling infobars, as the setup/tutorial pages instruct.