From c99d2f45eb86826095a6c232e12b173e5e8c0e1a Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Thu, 27 Apr 2023 17:24:03 -0400 Subject: [PATCH] fix(net6): automatic driver download --- src/Uno.UITest.Puppeteer/SeleniumApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Uno.UITest.Puppeteer/SeleniumApp.cs b/src/Uno.UITest.Puppeteer/SeleniumApp.cs index ed7c874..5d0221c 100644 --- a/src/Uno.UITest.Puppeteer/SeleniumApp.cs +++ b/src/Uno.UITest.Puppeteer/SeleniumApp.cs @@ -133,10 +133,10 @@ namespace Uno.UITest.Selenium Console.WriteLine($"Fetching Chrome driver version for Chrome [{chromeRawVersion}]"); #if NET6_0_OR_GREATER - var driverVersion = Task.Run(() => + var driverVersion = Task.Run(async () => { using var client = new HttpClient(); - return client.GetStringAsync(chromeDriverLatestVersionUri); + return await client.GetStringAsync(chromeDriverLatestVersionUri); }).Result; #else var driverVersion = new WebClient().DownloadString(chromeDriverLatestVersionUri);