Skip to content

Commit 5eee6b9

Browse files
committed
Add logs
1 parent ebe3b3c commit 5eee6b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ProxyDialogAutoFiller/ProxyDialogAutoFiller.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ internal static void LoginToProxy(RuntimeContext context, AutomationElement targ
206206
proxyDialogElement = targetRootElement.FindFirst(TreeScope.Descendants, proxyDialogCondition);
207207
if (proxyDialogElement == null)
208208
{
209+
context.Logger.Log($"Proxy dialog not found.");
209210
isProxyDialogClosed = true;
210211
break;
211212
}
@@ -219,6 +220,7 @@ internal static void LoginToProxy(RuntimeContext context, AutomationElement targ
219220
loginButton = loginButtonElement.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;
220221
if (loginButton == null)
221222
{
223+
context.Logger.Log($"Cannot cast to InvokePattern.");
222224
isProxyDialogClosed = true;
223225
break;
224226
}

0 commit comments

Comments
 (0)