Testing HTML Applications
For more information about page synchronization, see the description of the
command in the SQABasic Language Reference.
Capturing Properties or Data of Window Objects
Any time you plan to capture the data or properties of a window object, be sure to
click in the window before inserting an Object Data or Object Properties verification
point. Clicking in the window inserts a
command into the
script and ensures proper synchronization between pages.
Using the Browser's Back and Forward Buttons
If you use the Back or Forward buttons to navigate to a previously viewed page while
recording a script, you must perform some action on the page before you click the
Back or Forward button again. Clicking the page, for example, inserts the
command into the script, and just as with the previous example, ensures
proper synchronization between pages.
When you submit a purchase order for an e-commerce transaction, a substantial
delay may occur before the Web server responds with a confirmation. In fact, a Web
server may send one or more interim pages while it is processing the transaction.
Robot waits 30 seconds, by default, for this confirmation to arrive from the server. If
the confirmation requires additional time, the warning New Page Not Found appears
in the log after you play back the script. To correct this problem, edit the script by
adding a Wait value greater than 30 seconds to the
as in the following example:
Browser NewPage, "HTMLTitle=Thank you for your order!", "Wait=45"
In this example, the use of HTMLTitle in the recognition string allows Robot to
identify the correct page at playback and skip over any interim pages. The Wait value
causes Robot to wait 45 seconds for this specific page to be displayed.
Recording Mouse Movements
With Dynamic HTML, it is possible to cause a page to change color or to cause text
on a page to update simply by moving the mouse over the page. To capture these
1. Start recording in Robot.
2. Navigate to the page that contains the Dynamic HTML.
to enter low-level recording mode.