Selenese has a simple command that allows you to print text to your test’s output. This is useful for providing informational progress notes in your test which display on the console as your test is running. These notes also can be used to provide context within your test result reports, which can be useful for finding where a defect exists on a page in the event your test finds a problem. Finally, echo statements can be used to print the contents of Selenium variables.
answerOnNextPrompt(answer)
Arguments:
* answer – the answer to give in response to the prompt pop-up
Instructs Selenium to return the specified answer string in response to the next JavaScript prompt [window.prompt()].