Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Mar 22, 2019 15:11

Problem

The following error is thrown when creating an Appium iOS/Android driver using Selenium.WebDriver 3.141.0 and Appium.WebDriver 3.0.0.2 packages in C#:


System.TypeLoadException : VTable setup of type OpenQA.Selenium.Appium.Service.AppiumCommandExecutor failed

Solution

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:

  1. Use the DriverOptions class instead of DesiredCapabilities to instantiate the driver

    OR

  2. Downgrade Selenium version to 3.12.0