Skip to content

Common Error Messages

Hassan Uraizee edited this page Jul 31, 2018 · 1 revision

Overview

The objective of this page is to document error codes/messages in using WinAppDriver commonly encountered by the community, as well as to outline any potential solution(s) or workaround. The GitHub issues board will be regularly triaged for reoccurring questions/issues surrounding specific error responses to be put on here.

WinAppDriver Error Messages

Failed to locate opened application window with appId "..." and process "..."

Before proceeding with the potential resolution/workaround(s), please identify the following:

  1. The main application window that you are targeting. This window should be launched by the first session creation command even though it may fail to locate it.
  2. Attributes (accessibility id, name, etc.) for this particular main window that can be used by the Desktop Session to locate the correct Window element. You can use inspect.exe to find these attributes.

Once the above information is obtained, you can try instantiating a new session through the following ways:

  1. Instantiating a new session based on the application identifier attributes.
  2. Using a Desktop Session, this is useful for when the application succeeds to launch but always isn't located by WinAppDriver.
  3. For certain cases (such as an application having long startup times, or the session has already been created), you can try attaching to the existing application window.

Examples of this Issue: 326