18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
We are not able to save the object property into a variable and use it
We are not able to save the object property into a variable and use that variable to click on an object.
ex.
The object property is saved in DB, the column name is NAV_OBJECT_PROP and the value is '_label("Grupper")'
pageid = "XYZ";
the object property we get from db and pass it to variable
var $rs_object_name = db.select("select NAV_OBJECT_PROP, OBJECT_NAME from NAVIGATION where pageid = '" +$pageid +"'");
var $page_prop = $rs_object_name[0].NAV_OBJECT_PROP;
_click($page_prop);
we are getting error; when it execute "_click($page_prop);"
ex.
The object property is saved in DB, the column name is NAV_OBJECT_PROP and the value is '_label("Grupper")'
pageid = "XYZ";
the object property we get from db and pass it to variable
var $rs_object_name = db.select("select NAV_OBJECT_PROP, OBJECT_NAME from NAVIGATION where pageid = '" +$pageid +"'");
var $page_prop = $rs_object_name[0].NAV_OBJECT_PROP;
_click($page_prop);
we are getting error; when it execute "_click($page_prop);"