How to be able to manually intervent during the playback of a script in OATS and input values from the keyboard and make the script playback proceed further only after getting the input from the keyboard?
I tried by inserting a simple one-liner: String x=new DataInputStream(System.in).readLine();+
And then I assigned this variable x to the value for a setText for a textbox.
But the script takes the value entered from the keyboard only if I playback from the cmd and not when I playback using openScript.
Is there any other simple way to do this?
This is a bit urgent. Please help.
Please try following code:
String userinput =JOptionPane.showInputDialog("Please enter input");
info("User input is"+userinput);
Note: if you don't find input dialog box, please minmize OpenScript and other applications.