Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ with your query.

Object oriented javascript usage in sahi

ratan.angadiratan.angadi Members
edited April 2012 in Sahi - Open Source

I am writing some automation scripts in sahi and I want to know if I could youse object oriented javascript concepts in my automation script. Below script is what not working for me.

var x= new msg();

function msg()

function ShowMessage()
_alert('Method called');


when I execute the above script it shows successful but nothing happens. It works fine if I don't use OOPS concept. I mean i'm able to create object for Navigation() but nothing happens when i call the method inside Navigation.

Environment :

OS Name - Windows 7,
Brower Name and version - Internet explorer 9,
sahi Build: 2011-07-19


Sign In or Register to comment.