.registerBasicAuth() Suggest edits
Automate the input of basic auth credentials whenever they arise.
Usage
.registerBasicAuth(username, password, [callback])
Parameters
Name | Type | description |
---|---|---|
username |
string | |
password |
string | |
callback Optional |
function | Optional callback function to be called when the command finishes. |
Example
this.demoTest = function (browser) {
browser
.registerBasicAuth('test-username', 'test-password')
.navigateTo('http://browserspy.dk/password-ok.php');
};