MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / AddVirtualAuthenticator

Method AddVirtualAuthenticator

dotnet/src/webdriver/WebDriver.cs:1083–1093  ·  view source on GitHub ↗

Creates a Virtual Authenticator. Virtual Authenticator Options . Authenticator id as string If is .

(VirtualAuthenticatorOptions options)

Source from the content-addressed store, hash-verified

1081 /// <returns> Authenticator id as string </returns>
1082 /// <exception cref="ArgumentNullException">If <paramref name="options"/> is <see langword="null"/>.</exception>
1083 public string AddVirtualAuthenticator(VirtualAuthenticatorOptions options)
1084 {
1085 ArgumentNullException.ThrowIfNull(options);
1086
1087 Response commandResponse = this.Execute(DriverCommand.AddVirtualAuthenticator, options.ToDictionary());
1088
1089 commandResponse.EnsureValueIsNotNull();
1090 string id = (string)commandResponse.Value;
1091 this.AuthenticatorId = id;
1092 return id;
1093 }
1094
1095 /// <summary>
1096 /// Removes the Virtual Authenticator

Calls 4

ExecuteMethod · 0.95
ThrowIfNullMethod · 0.80
EnsureValueIsNotNullMethod · 0.80
ToDictionaryMethod · 0.45