Last updated: Mar 22, 2019 15:11
The following error is thrown when creating an Appium iOS/Android driver using Selenium.WebDriver 3.141.0 and Appium.WebDriver 184.108.40.206 packages in C#:
System.TypeLoadException : VTable setup of type OpenQA.Selenium.Appium.Service.AppiumCommandExecutor failed
This error is thrown when using OpenQA.Selenium.Remote.DesiredCapabilities to instantiate the driver.
The DesiredCapabilities class has been deprecated in Selenium v3.14.0, see Selenium change log at https://github.com/SeleniumHQ/selenium/blob/master/dotnet/CHANGELOG
There are two possible solutions to this issue:
- Use the DriverOptions class instead of DesiredCapabilities to instantiate the driver
- Downgrade Selenium version to 3.12.0