fix(net6): automatic driver download
This commit is contained in:
Родитель
7befa531cb
Коммит
c99d2f45eb
|
@ -133,10 +133,10 @@ namespace Uno.UITest.Selenium
|
||||||
|
|
||||||
Console.WriteLine($"Fetching Chrome driver version for Chrome [{chromeRawVersion}]");
|
Console.WriteLine($"Fetching Chrome driver version for Chrome [{chromeRawVersion}]");
|
||||||
#if NET6_0_OR_GREATER
|
#if NET6_0_OR_GREATER
|
||||||
var driverVersion = Task.Run(() =>
|
var driverVersion = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
using var client = new HttpClient();
|
using var client = new HttpClient();
|
||||||
return client.GetStringAsync(chromeDriverLatestVersionUri);
|
return await client.GetStringAsync(chromeDriverLatestVersionUri);
|
||||||
}).Result;
|
}).Result;
|
||||||
#else
|
#else
|
||||||
var driverVersion = new WebClient().DownloadString(chromeDriverLatestVersionUri);
|
var driverVersion = new WebClient().DownloadString(chromeDriverLatestVersionUri);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче