Skip to content

Commit 8c82647

Browse files
committed
Do not filter to main window
1 parent e6c24b4 commit 8c82647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProxyDialogAutoFiller/ProxyDialogAutoFiller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ internal static void WatchDialog(RuntimeContext context)
3030
{
3131
foreach (var targetDefinition in targetDefinitions)
3232
{
33-
//ブラウザのプロセスのうち、メインウィンドウがあるものに絞り込み
34-
var filteredElements = Process.GetProcessesByName(targetDefinition.ProcessName).Where(_ => _.MainWindowHandle != IntPtr.Zero);
33+
var filteredElements = Process.GetProcessesByName(targetDefinition.ProcessName);
3534
foreach (var filteredElement in filteredElements)
3635
{
3736
var targetPid = filteredElement.Id;
@@ -102,6 +101,7 @@ internal static void LoginToProxy(RuntimeContext context, AutomationElement targ
102101
var proxyDialogElement = targetRootElement.FindFirst(TreeScope.Descendants, proxyDialogCondition);
103102
if (proxyDialogElement == null)
104103
{
104+
context.Logger.Log($"Not found proxy dialog with a specified title.");
105105
return;
106106
}
107107
context.Logger.Log($"Found proxy dialog.");

0 commit comments

Comments
 (0)