Is there a way to use the custom profile on android with appium and chromedriver?
I am trying to define the ChromeOptions as follows chromeOptions = {'args': ['user-data-dir=/data/user/0/com.android.chrome/app_chrome/']}
After I launch chrome with the use of chromedriver and check the chrome://version
I see profile path as /data/data/com.android.chrome/app_chrome/Default
and there is no user signed in to chrome.
This is the log for appium starting
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "Android",
[debug] [BaseDriver] "browserName": "Chrome",
[debug] [BaseDriver] "appium:platformVersion": "11",
[debug] [BaseDriver] "appium:deviceName": "992AY188TB",
[debug] [BaseDriver] "appium:chromedriverExecutable": "/Users/chromedriver",
[debug] [BaseDriver] "appium:automationName": "UiAutomator2",
[debug] [BaseDriver] "appium:showChromedriverLog": "true",
[debug] [BaseDriver] "appium:newCommandTimeout": "3000",
[debug] [BaseDriver] "appium:noReset": "true",
[debug] [BaseDriver] "appium:fullReset": "false",
[debug] [BaseDriver] "appium:chromeOptions": {
[debug] [BaseDriver] "args": [
[debug] [BaseDriver] "user-data-dir=/data/user/0/com.android.chrome/app_chrome/"
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
question from:
https://stackoverflow.com/questions/65904668/appium-chromedriver-custom-profile 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…