This page is maintained for older versions of Rapise only. The latest documentation can be found at:
Custom Libraries

Custom Libraries

Top  Previous  Next


If your application doesn't work with the predefined Recording Libraries, you can create your own.



Your library can provide Basic or Full support for your application.  Basic support allows you to manually Learn objects, write test scripts, and Playback your scripts.  Full support allows you to Record as well.  Create your library in the LibUser directory.  Unless you specified otherwise, you will find it at:

C:\Program Files\Inflectra\Rapise\Engine\Lib\LibUser.


Basic Support

Add a Matcher Rule to the library for every window type in your application.  The SeSMatcherRule includes information to identify your application, and a set of behaviors.

var yourApplicationRule = new SeSMatcherRule(


   object_type: "yourAppObject",

   classname: "yourAppFrame", //You can use a regular expression here

   behavior: [yourAppBehavior]



Override Actions: Override actions in yourAppBehavior (above). The action definitions you provides will be used during Playback.  Overriding actions does not affect recording.

var HTMLFirefoxBehavior =


 actions: [{

     actionName: "Click",

     DoAction: function(){}



     actionName: "SetText",

     DoAction: function(/**String*/txt){}




Full Support

Enable Recording:  You can enable recording in two ways.  If your application notifies the Accessibility Events interface about application events, you can override events in the behavior section of SeSMatcherRules:

var newBehavior={

 actions: [{/*section deleted for brevity*/}],



   OnSelect: function(/**SeSObject*/ param, /**Boolean*/ badd)

   { /*...*/



   OnSelectAdd: function(/**SeSObject*/ param, /**Boolean*/ badd)

   { /*...*/




var newRule = new SeSMatcherRule({

   object_type: "someType",

   role: "someRole",

   behavior: [newBehavior],



Otherwise, you will have to implement Custom Recording.


Custom Recording: With custom recording, it is the library's responsibility to:

detect user actions in the application, and

call RegisterAction() (which writes the action to the script).


See Also

To see what actions and events can be overridden, see SeSBehavior.js (in the Rapise Engine).

Check the Engine/Lib directory for examples.

You can alter the behavior of an action without creating an entire library.  See the Actions section for more details.