Merge branch 'SciSharp:master' into master

This commit is contained in:
hchen2020 2025-03-13 08:30:45 -05:00 committed by GitHub
commit 28279eebe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>();