Java applets in HTML pages

You can test Java™ applets within a browser (Firefox, Internet Explorer). Java™ applets are not mapped as nested within HTML but are recorded as top-level objects. In the test object map, applets appear at the top level.

If the object cannot be found by "The Java™ Test Domain", the HTML Applet Test Object (HTML AppletProxy) is used as the fall-back test object, which provides only coordinate-based recording.

Requirements for testing applets within a browser

    • The Sun Java™ Plug-in is required for running and testing applets.
    • To use Java™ applets with Firefox, Java™ 2 Standard Edition Runtime version 1.4 or greater is required, and the associated Java™ Plug-in must be installed.
  • Internet Explorer
    • The Sun Java™ Plug-in is not required to run applets, but it is required for testing applets with HCL OneTest™ UI. If the Java™ Plug-in is not installed, the Microsoft® JVM is used to run applets, and HCL OneTest™ UI is not designed to enable the Microsoft® JVM.
    • If you want to use a Java™ Plugin older than 1.4 with Internet Explorer, you must turn off Applet Support:
      1. From the Windows® Start menu, run regedit.
      2. Open HKEY_LOCAL_MACHINE\Software\HCL Technologies\HCL OneTest UI.
      3. In the right pane, right-click and click New > String Value.
      4. Set the name of the new string to Applet Support.
      5. Double-click the newly created string.
      6. In the Value data field of the Edit String dialog box, type 0.
      7. Restart your computer.
  • HCL OneTest™ UI
    • For Internet Explorer, use Java™ Plug-in version 1.4 greater. Earlier versions of the Java™ Plug-in, including 1.2.2, and 1.3.1_01 do not work with HCL OneTest™ UI.
    • You must enable the JVM (JRE) that the Java™ Plug-in is using. When a JavaSoft JRE or JVM is installed, it may install a Java™ Plug-in also. If so, you must use HCL OneTest™ UI to enable the JVM used by the Java™ Plug-in. For information, see Enabling Java Environments.
    • HCL OneTest™ UI uses the most recently installed Java™ Plug-in/JRE. If an unsupported Java™ Plug-in is installed (for example, Version 1.2.2 in Internet Explorer), HCL OneTest™ UI stops working with the browser.
    • The Java™ Plug-in uses its default JRE (the JRE with the same version as the plug-in), unless specified otherwise. You can change the default JRE in the Java™ Plug-in control panel application.
    • HCL OneTest™ UI attempts to locate the most recently installed Java™ Plug-in and enable its default JVM.
    • Java™ Applets in HTML
      • An applet can be specified in HTML using an APPLET tag, an OBJECT tag, or an EMBED tag.
      • For Internet Explorer, until version 1.3 of the Java™ Plug-in, the OBJECT tag had to be used to specify the use of the Sun JVM for applets. In version 1.4 and later, during installation of the Java™ Plug-in, the use of the Java™ Plug-in/JRE may be selected as the default for Internet Explorer (APPLET tags), allowing both APPLET and OBJECT tags to be used.
      • A Java™ Plug-in HTML Converter is available from Sun Microsystems to convert APPLET tags to a set of OBJECT and EMBED tags within the HTML document.
      • Make sure Java™ applets are visible during playback. If you resize the browser to a smaller size, HCL OneTest™ UI does not scroll the applet objects into view during playback.