background image
<< To make HTML applications testable | To test an HTML element's data >>
<< To make HTML applications testable | To test an HTML element's data >>

Using the Start Browser Toolbar Button

Testing HTML Applications
14-4
The next time you start Robot, only the extensions for the selected environments are
loaded.
Using the Start Browser Toolbar Button
The Robot Start Browser toolbar button inserts StartBrowser command into the
script and opens automatically to the URL you want to test. This ensures that the
correct page will be loaded into the browser before the rest of the script executes.
To use the Start Browser button:
1. Start recording in Robot. To record, click the Record GUI Script button on the
Robot toolbar. For details, see Recording a New GUI Script on page 2-15.
2. Type a script name or select a name from the list.
3. Click OK to display the GUI Record toolbar.
4. Click the Display GUI Insert Toolbar button on the GUI Record toolbar.
5. Click the Start Browser button on the GUI Insert toolbar.
6. Type or select from the list the URL of the HTML application that you plan to
test. The list includes the last five URLs accessed. You can also click Browse to
select a local file.
7. Type the name of a tag to uniquely identify this instance of the browser. By using
tags, you can test multiple instances of the browser.
8. Click OK.
Robot starts the selected browser and navigates to the specified URL.
9. Continue recording in Robot, as described in Recording a New GUI Script on page
2-15.
Testing Data in HTML Elements
Use the Object Data verification point to test the data in HTML elements. For
example, you can use this verification point to test whether a purchase order has been
processed or whether a Submit button returns the page that it is supposed to. For
more specific information about verification points, see Chapter 4, Creating
Verification Points in GUI Scripts
.
NOTE: If you plan to use the script for cross-browser testing, record the
script in Netscape and play it back in Internet Explorer.