code: public void sendTextToNextAlert(String text) {
  		Alert alert = driver.switchTo().alert();
  
  		alert.sendKeys(text);
  		alert.accept();
  	}
docs: Enters the specified text into the upcoming input alert.
  
  @param text
  the text to be entered