Table of Contents

Class PasswordCredentials

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

A credentials provider that uses a user name and password for authentication.

public class PasswordCredentials : ICredentials
Inheritance
PasswordCredentials
Implements
Inherited Members

Constructors

PasswordCredentials()

Initializes a new instance of the PasswordCredentials class.

public PasswordCredentials()

PasswordCredentials(string, string)

Initializes a new instance of the PasswordCredentials class with the specified user name and password.

public PasswordCredentials(string userName, string password)

Parameters

userName string

The user name for the credentials.

password string

The password for the credentials.

Properties

Password

Gets the password.

public string Password { get; }

Property Value

string

UserName

Gets the user name.

public string UserName { get; }

Property Value

string