Sahi Documentation

Applet Automation Using Browser And Desktop Automation

abstract This section details how to automate Java Applets using Browser And Desktop Automation. If you are not familiar with Applet Automation, refer Applet Automation.

Java Applets can be automated using Browser and Desktop Automation. For this, the Applet elements need to be automated using JAVA_APPLET mode while the elements on browser need to be automated using BROWSER mode.

Pre-requisites

  1. You need Sahi Pro version v7.0.0 or above
  2. Sahi Pro Desktop Add-on needs to be installed.
  3. Both Browser and Desktop capabilities should be enabled. (Needs both Sahi Pro and Sahi Pro Desktop Add-on licenses)

Recording an Applet

  1. From the Sahi Dashboard, open the browser which supports applet and navigate to the page containing your applet.
  2. Press ALT and double click on the document window of the page which you want to record. Sahi's Controller window will popup. You can now start recording.
  3. As with normal Sahi, you can use CTRL-Hover to identify various elements on the applet.

Use of JavaApplet Mode

  1. To use "Evaluate expression" on Java applets, choose "Sahi-JavaApplet".
  2. For script playback in Controller Playback tab, select Start Mode as "Browser" and enter "Start URL" before "Play".