Hi
When trying to create a new AndroidDriver (with caps for opening chrome) I get the following exception/error in logs.
Any idea why appium is trying to download the chrome apk from the device to my PC?
The same problem can be observed when trying to create a new session from appium desktop.
[W3C] Encountered internal error running command: Error: Error executing adbExec. Original error: ‘Command ‘C:\Users\\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 9DC7N17727002520 pull /data/app/com.android.chrome-1/base.apk C:\Users\\AppData\Local\Temp\com.android.chrome.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Im using:
Appium 1.9.1
Appium desktop 1.7.1
appium-dotnet-driver 96faf0e4f2c2d63225f40aa9abaaffcf35d95c05
real device android 7.0
Code:
private static Uri AndroidServerUri => new Uri(“http://127.0.0.1:4723/wd/hub”);
private static AppiumOptions getAndroidWebOptions()
{
AppiumOptions capabilities = new AppiumOptions();
capabilities.AddAdditionalCapability(AndroidMobileCapabilityType.NoSign, true);
capabilities.AddAdditionalCapability(MobileCapabilityType.PlatformName, "Android");
capabilities.AddAdditionalCapability(MobileCapabilityType.DeviceName, "auto");
capabilities.AddAdditionalCapability(MobileCapabilityType.AutomationName, AutomationName.AndroidUIAutomator2);
capabilities.AddAdditionalCapability(AndroidMobileCapabilityType.UnicodeKeyboard, true);
capabilities.AddAdditionalCapability(AndroidMobileCapabilityType.ResetKeyboard, true);
capabilities.AddAdditionalCapability(MobileCapabilityType.BrowserName, "Chrome");
capabilities.AddAdditionalCapability("dontStopAppOnReset", true);
capabilities.AddAdditionalCapability("noReset", true);
capabilities.AddAdditionalCapability("fullReset", false);
return capabilities;
}
static void Main(string[] args)
{
var capabilities = getAndroidWebOptions();
AppiumDriver<IWebElement> driver = new AndroidDriver<IWebElement>(AndroidServerUri,
capabilities);
}