Skip to content

Failed to locate opened application window with appId: "xxxx_MyapplicationAppID_xxxx", and processId: 1804 : at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) #1500

@vishnuprakash9845

Description

@vishnuprakash9845

Automated the UWP application, followed the below steps, In my local its working fine, but in the VM the WinAppDriver is not launching and Automation getting failed with mentioned Title error

1.Started the WinAppDriver.exe in 4723 port programmatically

string winAppDriverPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), 
@"Windows Application Driver\WinAppDriver.exe");
Process.Start(winAppDriverPath);

2.Used the below code to launch the UWP App

        protected static WindowsDriver<WindowsElement> _session;

        var appCapabilities = new AppiumOptions();
        appCapabilities.AddAdditionalCapability("app", applicationAppId);
        _session = new WindowsDriver<WindowsElement>(new Uri(CommonTestSettings.WindowsApplicationDriverUrl), appCapabilities, TimeSpan.FromSeconds(30));

In my local system its working absolutely fine, But when I configured the same in Azure Devops Pipeline winAppDriver is not getting launched as a new window instead its starting as a process in Task Manager

image

But When I manually run the WinAppDriver.exe in VM [Path: "C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe"]
A new CMD window gets opened up like below one

image

I tried to add the WinAppDriver Task too but still same issue

    1-Starting WinAppDriver by WinAppDriver devops Task
    2-Using VSTest Task configured the tests to run 
    3-Stopping WinAppDriver Task

image

Not able to resolve this issue form past few months. Please let me know any work around required.
Waiting for responses from winappdriver team. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions