Ask a Question

System.InvalidCastException starting client side appium C# test

Nate
Occasional Contributor

System.InvalidCastException starting client side appium C# test

Seeing the following when attempting to start BitBar sessions with `new AndroidDriver<AndroidElement>(url, options, TimeSpan.FromMinutes(3)`:

System.InvalidCastException : Unable to cast object of type 'System.String' to type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]'

at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(ICommandExecutor commandExecutor, ICapabilities appiumOptions) at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities appiumOptions, TimeSpan commandTimeout) at OpenQA.Selenium.Appium.Android.AndroidDriver`1..ctor(Uri remoteAddress, DriverOptions driverOptions, TimeSpan commandTimeout) at...

 

Works fine with my local Appium instance.

Found an old bug that seems similar but is closed: 356

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: