diff --git a/scripts/windows-e2e.ps1 b/scripts/windows-e2e.ps1 index 1c0fd33..f7605d2 100644 --- a/scripts/windows-e2e.ps1 +++ b/scripts/windows-e2e.ps1 @@ -510,6 +510,11 @@ function Wait-Ready($proc, [string] $data, [string] $folder, [string] $label, [d Fail ('{0} 在就绪之前退出了(退出码 {1})。数据目录 {2}:{3}' -f $label, $proc.ExitCode, $data, (List-Dir $data)) } $d = Get-Dialog $proc.Id + if ($d) { + # 让位刚完成时,等待对话框可能正在关、只剩一个标题:过两秒还在才算 + Start-Sleep -Seconds 2 + $d = Get-Dialog $proc.Id + } if ($d) { $texts = (Get-Texts $d) -join ' | ' Raise $d