WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

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

Open tetsushmz opened this issue 7 years ago • 3 comments

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

tetsushmz avatar Feb 14 '19 17:02 tetsushmz

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

subhapuram avatar Feb 21 '19 05:02 subhapuram

Hi @tetsushmz, @subhapuram,

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

timotiusmargo avatar Mar 19 '19 23:03 timotiusmargo

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.

tetsushmz avatar Mar 20 '19 20:03 tetsushmz