© Copyright International Business Machines Corporation 2006. All rights reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
1.0 Known problems and workaroundsRational Functional Tester supports testing the browser content but not interactions with the browser menu options or the browser itself. This is done mainly to provide cross-browser record and playback facility for testing HTML applications.
Workaround: Capture the browser object and use the inputKeys method to interact with the menu options using the keyboard shortcuts for the specific menu options.
For example, the Close option in the File menu can be accessed using the shortcut key Alt+F+C. If you need to access this option, then you can use the inputKeys method on the browser object, providing the shortcut key ("%fc") as an input parameter as shown below:
Browser_HtmlBrowser(Document_HtmlDocument(),DEFAULT_FLAGS).InputKeys("%fc")
Sometimes browser enablement does not automatically add the associated JRE to the set of known JREs and enable it. This causes record and playback on HTML to fail.
Workaround: Perform the following steps:
- Go to the Control Panel from the Start menu and open the Java Control Panel.
- Check the location of the JRE used by the browser in the Java Applet Runtime Settings.
- Open the Functional Tester Enabler.
- Add the JRE used by the browser and enable it.
- Restart the HTML test appication.
For more information on browser enablement see Enabling the Java plug-in of a browser in the Functional Tester help.