Answeronnextprompt

Instructs Selenium to return the specified answer string in response to the next JavaScript prompt [window.prompt()].

Required Attributes
answer
the answer to give in response to the prompt pop-up.
Usage Examples
Example #1
<selenium url="http://somewhere.com">
   
<answerOnNextPrompt answer="superduper" />
   
<getEval property="response" script="window.prompt('Secret code word?', '')" />
   
<assert>
      
<isPromptPresent />
   
</assert>
   
<assert>
      
<eq op1="${response}" op2="superduper" />
   
</assert>
</selenium>