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

Method AddVirtualAuthenticator

dotnet/src/webdriver/WebDriver.cs:1025–1035  ·  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

1023 /// <returns> Authenticator id as string </returns>
1024 /// <exception cref="ArgumentNullException">If <paramref name="options"/> is <see langword="null"/>.</exception>
1025 public string AddVirtualAuthenticator(VirtualAuthenticatorOptions options)
1026 {
1027 ArgumentNullException.ThrowIfNull(options);
1028
1029 Response commandResponse = this.Execute(DriverCommand.AddVirtualAuthenticator, options.ToDictionary());
1030
1031 commandResponse.EnsureValueIsNotNull();
1032 string id = (string)commandResponse.Value;
1033 this.AuthenticatorId = id;
1034 return id;
1035 }
1036
1037 /// <summary>
1038 /// Removes the Virtual Authenticator

Calls 4

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