Credentials

Direct Username/Password Credentials

CredentialServiceType.None supplies a username and password directly in code, with no password manager involved. SaveTo writes them straight into a grid for FillInFrom.

CredentialServiceType.None supplies a username and password directly in code, with no password manager involved. SaveTo writes them straight into a grid for FillInFrom.

CredentialServiceType.None is the baseline credential source: WithUsername and WithPassword set the values directly, and SaveTo(grid) appends a single [Username, Password] row built from those values - no vault is queried, and GetCredentialsFor/WithDomain have no effect. This is the same shape used internally by WithCredentials to build a master login for the password-manager services.

Examples

GPAL Fluent: High-level fluent C# API

//SaveTo(grid) appends a [Username, Password] row regardless of ServiceType, so the same FillInFrom step works whether the credentials came directly from code, a password manager vault, or were built as a master login for WithCredentials.

// Direct username/password - no password manager involved var grid = GPAL.Grid.ToGPALObject(); GPAL.CredentialsFor(CredentialServiceType.None) .WithUsername("admin@example.com") .WithPassword("s3cret") .SaveTo(grid); // Use the grid to fill in a login form GPAL.Browser .GoTo("https://example.com/login") .WithSelector("#username") .WithSelector("#password") .FillInFrom(grid) .WithSelector("#login") .LeftClick();