public void sendTextToNextAlert ( String text ) { Alert alert = driver . switchTo ( ) . alert ( ) ; alert . sendKeys ( text ) ; alert . accept ( ) ; }
Enters the specified text into the upcoming input alert .