From b3b120ab00751b2f693772c4b248925cd9c4b09e Mon Sep 17 00:00:00 2001 From: OlegMozhey Date: Sun, 14 Apr 2024 17:26:50 +0400 Subject: [PATCH] Finished poc for selenium interraction --- .../WebElements/ButtonElement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Behavioral.Automation.Implementation.Selenium/Behavioral.Automation.Implementation.Selenium/WebElements/ButtonElement.cs b/Behavioral.Automation.Implementation.Selenium/Behavioral.Automation.Implementation.Selenium/WebElements/ButtonElement.cs index 704cba0..132d5ee 100644 --- a/Behavioral.Automation.Implementation.Selenium/Behavioral.Automation.Implementation.Selenium/WebElements/ButtonElement.cs +++ b/Behavioral.Automation.Implementation.Selenium/Behavioral.Automation.Implementation.Selenium/WebElements/ButtonElement.cs @@ -13,6 +13,6 @@ public ButtonElement(WebContext webContext, ButtonSelector selector) : base(webC public Task ClickAsync() { - return new Task(() => { Locator.Click(); }); + return Task.Run(() => { Locator.Click(); }); } } \ No newline at end of file