• function

prompt FuncUnit.prompt

 

prompt(answer)

When a browser's native prompt dialog is used, this method is used to repress the dialog and simulate clicking typing something into the dialog.

S.prompt("Harry Potter");

Parameters

  1. answer {String}

    Whatever you want to simulate a user typing in the prompt box

Returns

{undefined}