Remove FocusAsync for PressKey

This commit is contained in:
Haiping Chen 2025-01-21 18:36:37 +00:00
parent f5f92541ea
commit 618b9f5a81

View file

@ -75,9 +75,6 @@ public partial class PlaywrightWebDriver : IWebBrowser
var page = _instance.GetPage(message.ContextId);
if (page != null)
{
// Click on the body to give focus to the page
await page.FocusAsync("input");
await page.Keyboard.PressAsync(key);
}
}