Winappdriver: CalculatorTest doesn't run because it threw exceptions when instantiating the WindowsDriver object.

Created on 14 Feb 2019  路  3Comments  路  Source: microsoft/WinAppDriver

Hi,

The exceptions are:

  • Exception thrown: 'System.TypeLoadException' in appium-dotnet-driver.dll
  • Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
  • Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll

And then the Visual Studio 2017 pro V15.9.5 unit test session stopped. Of course, the Calculator app wasn't launched. The WinAppDriver remained there without showing nothing new after "Press ENTER to exit.". What am I doing wrong?

I downloaded the V1.1 WinAppDriver, installed, and ran it on Windows 10 64 bit V1809. I turned on the "Developer mode". I had to modify the CalculatorSession code (.ImplicitlyWait() to .ImplicitWait = ) to remove the compile error, by the way.

I would appreciate any suggestions.

Thanks,

Tetsu

Most helpful comment

Hi @timotiusmargo ,

I tested V1.1.1 and verified it worked. I needed to uncheck the "For improved performance, only use test adapters in test assembly folder or as specified in runsettings file" setting, though.

Thanks so much.

All 3 comments

hi ,

i have to downgrade appium driver to 3.0.0.2 . uninstall existing driver and while installing now select the old one and then it should be running
I had to downgrade selenium driver also to 3.11.2.0 and then it worked

Hi @tetsushmz, @subhapuram,

The CalculatorTest sample and README.md was recently updated. Would you please give it a try?

Hi @timotiusmargo ,

I tested V1.1.1 and verified it worked. I needed to uncheck the "For improved performance, only use test adapters in test assembly folder or as specified in runsettings file" setting, though.

Thanks so much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

quincycs picture quincycs  路  3Comments

jsa34 picture jsa34  路  3Comments

sky205 picture sky205  路  3Comments

Blank517 picture Blank517  路  4Comments

vnabokit picture vnabokit  路  3Comments