Last updated: Jun 01, 2020 15:32
The following error is thrown when creating an Appium iOS/Android driver using Selenium.WebDriver 3.141.0 and Appium.WebDriver 220.127.116.11 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