You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The process ID returned does not match the original process id of the target application. How can I get the exact process ID of any application that I launch from the library?
Code snippets
public FlaUI.Core.Application application = FlaUI.Core.Application.Launch(appPath);
application = FlaUI.Core.Application.Attach(application.ProcessId);
Screenshots
Additional context
Same code works fine on some of the variants of Windows.
The text was updated successfully, but these errors were encountered:
You are probably running into the issue that the calculator is a windows store app which you need to start differently. Try it with an application that is not a Windows Store App (like notpad++) and there it should work.
We were having issues also launching the calculator on W11 and this old response of @Roemer was the key. #267 (comment)
In our case:
var app = FlaUI.Core.Application.LaunchStoreApp("Microsoft.WindowsCalculator_8wekyb3d8bbwe!App");
and getting the parent to interact with it var window = app.GetMainWindow(automation).Parent.AsWindow();
Describe the bug
The process ID returned does not match the original process id of the target application. How can I get the exact process ID of any application that I launch from the library?
Code snippets
public FlaUI.Core.Application application = FlaUI.Core.Application.Launch(appPath);
application = FlaUI.Core.Application.Attach(application.ProcessId);
Screenshots
Additional context
Same code works fine on some of the variants of Windows.
The text was updated successfully, but these errors were encountered: