diff --git a/Directory.Packages.props b/Directory.Packages.props index cd774b6..88436d6 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/src/Flawright/AumidResolver/WindowsAumidResolver.cs b/src/Flawright/AumidResolver/WindowsAumidResolver.cs index 73386d7..3c3db32 100644 --- a/src/Flawright/AumidResolver/WindowsAumidResolver.cs +++ b/src/Flawright/AumidResolver/WindowsAumidResolver.cs @@ -41,7 +41,7 @@ namespace Flawright.AumidResolver; /// /// If neither tier matches, returns a /// target so the caller falls through to the -/// standard Application.AttachOrLaunch path. +/// standard Application.Launch path. /// /// public sealed class WindowsAumidResolver : IAumidResolver diff --git a/src/Flawright/Backends/Uia/FlaUiApplicationLauncher.cs b/src/Flawright/Backends/Uia/FlaUiApplicationLauncher.cs index 4c22273..de4ce35 100644 --- a/src/Flawright/Backends/Uia/FlaUiApplicationLauncher.cs +++ b/src/Flawright/Backends/Uia/FlaUiApplicationLauncher.cs @@ -57,7 +57,7 @@ public async Task Launch(LaunchOptions opts, CancellationTok var sw = Stopwatch.StartNew(); var app = ProcessAttachRetry.Invoke( - () => Application.AttachOrLaunch(psi), + () => Application.Launch(psi), onRetry: opts.OnAttachRetry); // Wait for the process to finish loading its DLL modules before handing diff --git a/src/Flawright/Browser/LaunchOptions.cs b/src/Flawright/Browser/LaunchOptions.cs index 04039a5..8612246 100644 --- a/src/Flawright/Browser/LaunchOptions.cs +++ b/src/Flawright/Browser/LaunchOptions.cs @@ -80,7 +80,7 @@ public sealed record LaunchOptions /// /// /// - /// After Process.Start / Application.AttachOrLaunch returns, + /// After Process.Start / Application.Launch returns, /// the Win32 loader maps DLL modules asynchronously. On a loaded runner, /// FlaUI's internal EnumProcessModules calls (used during /// WaitWhileMainHandleIsMissing and window discovery) can race against diff --git a/src/Flawright/Internals/AppExecutionAliasResolver.cs b/src/Flawright/Internals/AppExecutionAliasResolver.cs index b94539a..d3b6293 100644 --- a/src/Flawright/Internals/AppExecutionAliasResolver.cs +++ b/src/Flawright/Internals/AppExecutionAliasResolver.cs @@ -7,7 +7,7 @@ namespace Flawright.Internals; /// %LOCALAPPDATA%\Microsoft\WindowsApps\) and resolves them to their /// Application User Model ID (AUMID) so that FlaUI can use /// Application.LaunchStoreApp instead of the broken -/// Application.AttachOrLaunch path. +/// Application.Launch path (which tracks the stub process and sees it exit immediately). /// /// /// On Windows 11, several inbox apps (Notepad, Calculator, Paint) are packaged diff --git a/src/Flawright/Internals/ProcessReadyGuard.cs b/src/Flawright/Internals/ProcessReadyGuard.cs index 026b62d..5a84c42 100644 --- a/src/Flawright/Internals/ProcessReadyGuard.cs +++ b/src/Flawright/Internals/ProcessReadyGuard.cs @@ -22,7 +22,7 @@ internal record ProcessReadyResult( /// /// /// -/// Root cause: Process.Start / Application.AttachOrLaunch returns +/// Root cause: Process.Start / Application.Launch returns /// as soon as the OS creates the process record. The Win32 loader then maps DLL modules /// asynchronously. FlaUI's EnumProcessModules calls (used inside /// WaitWhileMainHandleIsMissing and similar paths) can race against the loader on