licanhua / wdio-winappdriver-service

A WebdriverIO service to start & stop WinAppDriver
MIT License
2 stars 1 forks source link

browser.pause() will pause the tested application as well #5

Closed flymike closed 2 years ago

flymike commented 2 years ago

The application under the test is fairly big and complicate, it has got the splash screen as well. browser.pause() is used when the session switches to the main window of the application after splash screen. The main window comes up fine and session switches to it and the rest tests work OK if, only if the WinAppService is run out of wdio local_runner from a separate console in advance. If WinAppService was started by wdio-winappderiver-service, the main windows pauses as well at certain point of the rendering, so the first element selector after the session windows switching fails.

flymike commented 2 years ago

Update: Changed the app start strategy by launching it from Windows Desktop (app: 'Root' capability), and find better way to select/wait UI elements, the browser.pause() no longer needed in the new test cases implementation. wdio-winappdriver-service works fine with new setup.