Example: Automate Flash Chat Web Applet
Top  Previous  Next

The diagram shows you that only three images and three lines of macro code are required to automate input into a flash (or Java) based chat applet. The picture below indicates that the procedure to create images for IMAGESEARCH has been done for the three elements.

This example includes a verification that the input is received.

image-recognition-plugin

The macro for this application is:

'Fill text into input box
IMAGECLICK IMAGE=inputbox.bmp CONFIDENCE=95 CONTENT=Hello<SP>Heidelberg
'Click "send" button
IMAGECLICK IMAGE=sendbutton.bmp CONFIDENCE=95 
'Now test if the applet works => look for text "Heidelberg" in applet window
IMAGESEARCH IMAGE=text.bmp CONFIDENCE=95 

If you add STOPWATCH commands to this macro, it can be used to measure the performance of the Flash (or Java) applet.



Page URL http://www.iopus.com/imacros/help/ir_flash_test_example.htm