Winium.Mobile icon indicating copy to clipboard operation
Winium.Mobile copied to clipboard

Winium Mobile driver is not working on my Windows 10 system

Open aman019 opened this issue 7 years ago • 7 comments

Bellow error I am getting when I tried to run winium mobile driver.

D:\aman\WiniumMobileDriver>Winium.Mobile.Driver.exe --verbose 16:12:29 [INFO] Winium.Mobile.Driver, Version: 1.7.1.0, Revision: e9c35bb5333e2f7f3b2c30baec883b157db01b34 16:12:29 [FATAL] System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xde.Common, Version=8.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Xde.Common, Version=8.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Winium.Mobile.Connectivity.Emulator.EmulatorFactory..ctor() at Winium.Mobile.Connectivity.Emulator.EmulatorFactory.<.cctor>b__0() in c:\Dev\Winium.StoreApps\Winium\Winium.Mobile.Connectivity\Emulator\EmulatorFactory.cs:line 20 at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at System.Lazy`1.get_Value() at Winium.Mobile.Driver.Program.Main(String[] args) in c:\Dev\Winium.StoreApps\Winium\Winium.Mobile.Driver\Program.cs:line 63

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

aman019 avatar Mar 15 '17 10:03 aman019

You need Windows Phone SDK with emulators installed on your host machine

https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

NickAb avatar Mar 16 '17 04:03 NickAb

Thanks for the reply! Will try after installing SDK and emulators.

Does this mean winium automation is not possible with real device?

aman019 avatar Mar 16 '17 16:03 aman019

Winium.Mobile supports emulators only, because we were not able to do user input simulation on devices. But you can relatively easy hack code to use real devices, but you will have to fallback to automation api like Invoke, etc. instead of simulating user touch inputs.

There is also Project My Screen app which mirrors your host desktop input to connected phone, so it should be possible to simulate touch input on devices properly, but this one would require some research.

NickAb avatar Mar 17 '17 01:03 NickAb

Thanks Nick!

What do yo mean by "But you can ... touch inputs"? Please help me to understand this.

aman019 avatar Mar 17 '17 07:03 aman019

There are two ways to press button or scroll a list during tests.

You can either simulate user gestures (tap, flick, etc.) or you can call automation api like Invoke or Scroll. Later does not simulate user input, it directly calls code responsible for button action, or scrolling.

NickAb avatar Mar 17 '17 07:03 NickAb

Hi Nick, As suggested by you i have installed Windows phone SDK and emulator. I am able to launch the windows 10 phone emulator successfully but while trying to run Winium.Mobile.Driver.exe it is displaying the same error which which i posted earlier.

Please let me know if you need more info from my side to resolve my problem.

aman019 avatar Mar 19 '17 15:03 aman019

Hi , I am running Winium.Mobile.Driver.exe in Windows 10 system. It is not running . It is opening and closing automatically. I have installed Windows 10 SDK and Windows 10 emulator is starting successfully. If I click muliple times on Winium.Mobile.Driver.exe . It is opening and showing blank screen. I am also attaching screen shots to understand better. windows_sdk winium

NarayanaBojja avatar Jun 01 '17 09:06 NarayanaBojja