Merge pull request #939 from visagang/features/vguruparan
Update default wait time for web driver
This commit is contained in:
commit
d881c7f594
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue