Skip to content

Commit 0932bd4

Browse files
author
vguruparan
committed
Update invoice submission file url
1 parent 0c551b1 commit 0932bd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.GoToPage.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ await page.EvaluateAsync(@"() => {
5252
{
5353
page = await _instance.NewPage(message, args);
5454
}
55+
var cdpSession = await context.NewCDPSessionAsync(page);
5556

57+
// Set CPU throttling rate
58+
await cdpSession.SendAsync("Emulation.setCPUThrottlingRate", new Dictionary<string, object>
59+
{
60+
{ "rate", 25 }
61+
});
5662
// Active current tab
5763
await page.BringToFrontAsync();
5864
var response = await page.GotoAsync(args.Url, new PageGotoOptions

0 commit comments

Comments
 (0)