File tree 4 files changed +8
-7
lines changed
src/Aquality.Selenium.Core
tests/Aquality.Selenium.Core.Tests
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 43
43
</None >
44
44
</ItemGroup >
45
45
<ItemGroup >
46
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.8 " />
47
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 3.1.8 " />
46
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.9 " />
47
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 3.1.9 " />
48
48
<PackageReference Include =" NLog" Version =" 4.7.5" />
49
49
<PackageReference Include =" Selenium.Support" Version =" 3.141.0" />
50
50
<PackageReference Include =" Selenium.WebDriver" Version =" 3.141.0" />
Original file line number Diff line number Diff line change 2
2
using Aquality . Selenium . Core . Configurations ;
3
3
using Aquality . Selenium . Core . Utilities ;
4
4
using Microsoft . Extensions . DependencyInjection ;
5
+ using Microsoft . Win32 ;
5
6
using System ;
7
+ using System . Diagnostics ;
6
8
using WebDriverManager ;
7
9
using WebDriverManager . DriverConfigs . Impl ;
10
+ using WebDriverManager . Helpers ;
8
11
9
12
namespace Aquality . Selenium . Core . Tests . Applications . Browser
10
13
{
@@ -33,8 +36,7 @@ private static ChromeApplication StartChrome(IServiceProvider services)
33
36
{
34
37
lock ( downloadDriverLock )
35
38
{
36
- var version = EnvironmentConfiguration . GetVariable ( "webDriverVersion" ) ?? "Latest" ;
37
- new DriverManager ( ) . SetUpDriver ( new ChromeConfig ( ) , version : version ) ;
39
+ new DriverManager ( ) . SetUpDriver ( new ChromeConfig ( ) , VersionResolveStrategy . MatchingBrowser ) ;
38
40
}
39
41
40
42
return new ChromeApplication ( services . GetRequiredService < ITimeoutConfiguration > ( ) ) ;
Original file line number Diff line number Diff line change 26
26
27
27
<ItemGroup >
28
28
<PackageReference Include =" Appium.WebDriver" Version =" 4.2.1" />
29
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.8 " />
29
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.9 " />
30
30
<PackageReference Include =" nunit" Version =" 3.12.0" />
31
31
<PackageReference Include =" NUnit3TestAdapter" Version =" 3.17.0" >
32
32
<PrivateAssets >all</PrivateAssets >
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ stages:
44
44
displayName : Run tests
45
45
46
46
variables :
47
- webDriverVersion : ' 85.0.4183.83'
48
47
isRemote : true
49
48
50
49
steps :
@@ -84,7 +83,7 @@ stages:
84
83
- task : GitHubRelease@0
85
84
displayName : ' Create tag on GitHub'
86
85
inputs :
87
- gitHubConnection : ' GitHub '
86
+ gitHubConnection : ' github.com_aqualityautomation '
88
87
repositoryName : ' aquality-automation/aquality-selenium-core-dotnet'
89
88
action : ' create'
90
89
tag : ' v$(GitVersion.NuGetVersion)'
You can’t perform that action at this time.
0 commit comments