@@ -45,7 +45,6 @@ public class WebDriver : IWebDriver, ISearchContext, IJavaScriptExecutor, IFinds
45
45
private NetworkManager network ;
46
46
private WebElementFactory elementFactory ;
47
47
private SessionId sessionId ;
48
- private String authenticatorId ;
49
48
private List < string > registeredCommands = new List < string > ( ) ;
50
49
51
50
/// <summary>
@@ -1046,8 +1045,8 @@ public string AddVirtualAuthenticator(VirtualAuthenticatorOptions options)
1046
1045
{
1047
1046
Response commandResponse = this . Execute ( DriverCommand . AddVirtualAuthenticator , options . ToDictionary ( ) ) ;
1048
1047
string id = commandResponse . Value . ToString ( ) ;
1049
- this . authenticatorId = id ;
1050
- return this . authenticatorId ;
1048
+ this . AuthenticatorId = id ;
1049
+ return this . AuthenticatorId ;
1051
1050
}
1052
1051
1053
1052
/// <summary>
@@ -1057,15 +1056,15 @@ public string AddVirtualAuthenticator(VirtualAuthenticatorOptions options)
1057
1056
public void RemoveVirtualAuthenticator ( string authenticatorId )
1058
1057
{
1059
1058
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
1060
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1059
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1061
1060
this . Execute ( DriverCommand . RemoveVirtualAuthenticator , parameters ) ;
1062
- this . authenticatorId = null ;
1061
+ this . AuthenticatorId = null ;
1063
1062
}
1064
1063
1065
1064
/// <summary>
1066
1065
/// Gets the virtual authenticator ID for this WebDriver instance.
1067
1066
/// </summary>
1068
- public string AuthenticatorId { get ; }
1067
+ public string AuthenticatorId { get ; private set ; }
1069
1068
1070
1069
/// <summary>
1071
1070
/// Add a credential to the Virtual Authenticator/
@@ -1074,7 +1073,7 @@ public void RemoveVirtualAuthenticator(string authenticatorId)
1074
1073
public void AddCredential ( Credential credential )
1075
1074
{
1076
1075
Dictionary < string , object > parameters = new Dictionary < string , object > ( credential . ToDictionary ( ) ) ;
1077
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1076
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1078
1077
1079
1078
this . Execute ( driverCommandToExecute : DriverCommand . AddCredential , parameters ) ;
1080
1079
}
@@ -1086,7 +1085,7 @@ public void AddCredential(Credential credential)
1086
1085
public List < Credential > GetCredentials ( )
1087
1086
{
1088
1087
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
1089
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1088
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1090
1089
1091
1090
object [ ] commandResponse = ( object [ ] ) this . Execute ( driverCommandToExecute : DriverCommand . GetCredentials , parameters ) . Value ;
1092
1091
@@ -1117,7 +1116,7 @@ public void RemoveCredential(byte[] credentialId)
1117
1116
public void RemoveCredential ( string credentialId )
1118
1117
{
1119
1118
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
1120
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1119
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1121
1120
parameters . Add ( "credentialId" , credentialId ) ;
1122
1121
1123
1122
this . Execute ( driverCommandToExecute : DriverCommand . RemoveCredential , parameters ) ;
@@ -1129,7 +1128,7 @@ public void RemoveCredential(string credentialId)
1129
1128
public void RemoveAllCredentials ( )
1130
1129
{
1131
1130
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
1132
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1131
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1133
1132
1134
1133
this . Execute ( driverCommandToExecute : DriverCommand . RemoveAllCredentials , parameters ) ;
1135
1134
}
@@ -1141,7 +1140,7 @@ public void RemoveAllCredentials()
1141
1140
public void SetUserVerified ( bool verified )
1142
1141
{
1143
1142
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
1144
- parameters . Add ( "authenticatorId" , this . authenticatorId ) ;
1143
+ parameters . Add ( "authenticatorId" , this . AuthenticatorId ) ;
1145
1144
parameters . Add ( "isUserVerified" , verified ) ;
1146
1145
1147
1146
this . Execute ( driverCommandToExecute : DriverCommand . SetUserVerified , parameters ) ;
0 commit comments