dotnet-client: AppiumCommandExecutor: VTable failed, and 'Dispose' method lacks implementation
The problem
After updating appium, node, and packages in visual studio I can no longer get the phone to connect.
Environment
Appium 1.7.2 java 1.8.0_162 node 5.8.0 samsung J3 (6.0.1) macOS and win10
Details
Occurs at the constructor for the device driver (line 230 of testLogic.cs)
Source code: appiumAndroidUnitTests.zip
macOS
===============
--Exception--
===============
4/10/2018 11:18:23 AM
appium-dotnet-driver, -2146233054
System.Collections.ListDictionaryInternal
VTable setup of type OpenQA.Selenium.Appium.Service.AppiumCommandExecutor failed
Void .ctor(Uri, ICapabilities)
at OpenQA.Selenium.Appium.AppiumDriver`1[W]..ctor (System.Uri remoteAddress, OpenQA.Selenium.ICapabilities desiredCapabilities) [0x00000] in <9b3ceeffa60d410090f33f3b9ea8ebde>:0
at OpenQA.Selenium.Appium.Android.AndroidDriver`1[W]..ctor (System.Uri remoteAddress, OpenQA.Selenium.Remote.DesiredCapabilities desiredCapabilities) [0x0000d] in <9b3ceeffa60d410090f33f3b9ea8ebde>:0
at appiumUnitTests.testLogic.runTests (appiumUnitTests.Program+device de) [0x00846] in /Users/sjaroch/Desktop/repos/appiumandroidunittestscsharp/appiumUnitTests/testLogic.cs:230
===================
--End exception--
===================
Windows
===============
--Exception--
===============
4/10/2018 11:20:26 AM
appium-dotnet-driver, -2146233054
System.Collections.ListDictionaryInternal
Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' from assembly 'appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Void .ctor(System.Uri, OpenQA.Selenium.ICapabilities, System.TimeSpan)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Appium.Android.AndroidDriver`1..ctor(Uri remoteAddress, DesiredCapabilities desiredCapabilities)
at appiumUnitTests.testLogic.runTests(device de) in C:\Users\sjaroch\Desktop\android-test-lib\appiumAndroidUnitTests\appiumUnitTests\testLogic.cs:line 230
===================
--End exception--
===================
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 36
The same issue with 3.13.0/3.13.1 selenium.Webdriver
Exception: Message: System.TypeLoadException : Method ‘Dispose’ in type ‘OpenQA.Selenium.Appium.Service.AppiumCommandExecutor’ from assembly ‘appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null’ does not have an implementation.
I can confirm that this is breaking and 3.12.1 works
Anyone who faces this bug, please try version 3.12.1, it works.
FAST_Libs.zip
Hi, Could you please try using attached dll files and let me know. I am able to run my scripts smoothly with this. Unfortunately we cant update reference dlls easily in my project, and new dlls are not giving any additional benefits either.
This seems to have reappeared in v3.13.0 no?
I faced same issue since yesterday. Luckily we have new selenium release selenium v3.11.2
In this one it solved the problem for me.