question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinAppDriver hangs when creating session

See original GitHub issue

Hi guys,

I am automating one of our UWP apps by WinAppDriver, however, when I execute my tests, sometimes, the UWP app to be tested can be launched but the WinAppDriver hangs, so the test code are not executed anymore. From the console log in below, it seems that the session mgr gets stuck in loading MitaBroker.

SessionManager - Creating session SessionManager - WinAppDriver succeeded loading MitaBroker

Could you pls help look into this issue?

I use below code to initialize the web driver instance DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.SetCapability("platformName", "Windows"); appCapabilities.SetCapability(“deviceName”, “WindowsPC”); appCapabilities.SetCapability(“launchTimeout”, 5000); appCapabilities.SetCapability(“app”, “Dolby.DAX3.UI.CS_rnnrkadb60ba0!App”); new WindowsDriver<WindowsElement>(new Uri(“http://127.0.0.1:4723”), appCapabilities);

WindowsDriver<WindowsElement> appSession= new WindowsDriver<WindowsElement>(new Uri(app_Driver_Url), appCapabilities)`

The version of the WinAppDrive I’m using is: v0.9-beta

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
holphicommented, Aug 26, 2017

@timotiusmargo

Sorry for slow response. I’ve upgraded WinAppDriver to v1.0 and tried re-run test scenarios, I don’t meet the issue anymore.

0reactions
timotiusmargocommented, Aug 17, 2017

@holphi,

Depending on the application you test, some app supports multiple instance creation for every launch (e.g. Notepad) while some simply use a single instance (Alarms & Clock). When you create a session with the given Dolby.DAX3.UI.CS_rnnrkadb60ba0!App appId, WinAppDriver will attempt to launch/activate it and locate the main application window if it succeed.

Can you please retry the scenario using the latest Widows Application Driver v1.0-RC and share your findings?

Read more comments on GitHub >

github_iconTop Results From Across the Web

WinAppDriver hangs when creating session · Issue #224
Hi guys,. I am automating one of our UWP apps by WinAppDriver, however, when I execute my tests, sometimes, the UWP app to...
Read more >
WinAppDriver for WPF application failed creating ...
It fails most of times when I create the Session object for the test. This is a .Net 6.0 application and it starts...
Read more >
UI testing for Windows apps with WinAppDriver and Appium
In the end, we start a new session by creating a new instance of the WindowsDriver object, passing a parameter the WinAppDriver url...
Read more >
Unable to start the Windows application
The WinAppDriver hangs on and eventually time out. This can be resolved by telling WinAppDriver to wait for a defined amount of time...
Read more >
UI Testing Windows Apps with WinAppDriver - Atomic Spin
Creating a WindowsDriver in your test will prompt the WinAppDriver server to attach to the newly-opened app session.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found