Skip to content

Commit 47d728b

Browse files
author
Visagan Guruparan
committed
Update default timeout to lowercasing
1 parent e570672 commit 47d728b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Infrastructure/BotSharp.Abstraction/Browsing/Settings/WebBrowsingSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ public class WebBrowsingSettings
55
public string Driver { get; set; } = "Playwright";
66
public bool Headless { get; set; }
77
// Default timeout in milliseconds
8-
public float DefaultTimeOut { get; set; } = 30000;
8+
public float DefaultTimeout { get; set; } = 30000;
99
}

src/Plugins/BotSharp.Plugin.WebDriver/Functions/GoToPageFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task<bool> Execute(RoleDialogModel message)
3636
}, new PageActionArgs
3737
{
3838
Url = url,
39-
Timeout = _webDriver.DefaultTimeOut
39+
Timeout = _webDriver.DefaultTimeout
4040
});
4141
message.Content = result.IsSuccess ? $"Page {url} is open." : $"Page {url} open failed. {result.Message}";
4242

src/Plugins/BotSharp.Plugin.WebDriver/Functions/OpenBrowserFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public async Task<bool> Execute(RoleDialogModel message)
4141
result = await _browser.GoToPage(msgInfo, new PageActionArgs
4242
{
4343
Url = url,
44-
Timeout = _webDriver.DefaultTimeOut
44+
Timeout = _webDriver.DefaultTimeout
4545
});
4646

4747
if (result.IsSuccess)

src/Plugins/BotSharp.Plugin.WebDriver/UtilFunctions/UtilWebGoToPageFn.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public async Task<bool> Execute(RoleDialogModel message)
2424
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
2525
});
2626
var _webDriver = _services.GetRequiredService<WebBrowsingSettings>();
27-
args.Timeout = _webDriver.DefaultTimeOut;
27+
args.Timeout = _webDriver.DefaultTimeout;
2828
args.WaitForNetworkIdle = false;
2929
args.WaitTime = 5;
3030
args.OpenNewTab = true;

0 commit comments

Comments
 (0)