$browser->credentials( 'servername:portnumber', 'realm-name', 'username' => 'password' );