Update default wait time for web driver

This commit is contained in:
Visagan Guruparan 2025-03-12 21:35:30 -05:00
parent 9b6cf7a9ac
commit d2ba1a3dc0
2 changed files with 3 additions and 1 deletions

View file

@ -7,4 +7,6 @@ public class WebBrowsingSettings
// Default timeout in milliseconds
public float DefaultTimeout { get; set; } = 30000;
public bool IsEnableScreenshot { get; set; }
// Default wait time in seconds after page is opened
public int DefaultWaitTime { get; set; } = 5;
}

View file

@ -26,7 +26,7 @@ public class UtilWebGoToPageFn : IFunctionCallback
var _webDriver = _services.GetRequiredService<WebBrowsingSettings>();
args.Timeout = _webDriver.DefaultTimeout;
args.WaitForNetworkIdle = false;
args.WaitTime = 5;
args.WaitTime = _webDriver.DefaultWaitTime;
args.OpenNewTab = true;
var conv = _services.GetRequiredService<IConversationService>();