How to send values to prompt using selenium

Alert alert = wait.until(alertIsPresent());
alert.sendKeys("cheese");
alert.accept();

No images available.