public function setHttpBasicAuthForHost($hostname, $username, $password)
{
// what are we doing?
$log = usingLog()->startAction("set HTTP basic auth for host '{$hostname}': user: '{$username}'; password: '{$password}'");
try {
// get the browser adapter
$adapter = $this->st->getDeviceAdapter();
// set the details
$adapter->setHttpBasicAuthForHost($hostname, $username, $password);
} catch (Exception $e) {
throw new E5xx_ActionFailed(__METHOD__, "unable to set HTTP basic auth; error is: " . $e->getMessage());
}
// all done
$log->endAction();
}