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.
Parser problem
globalworming
Moderators
Hi
i wanted to try a different coding style for my tests, but unfortunately it doesn't work. This piece of code works well in the controller
Is there a way to work around this?
Regards
Wormi
Sahi Build: 2011-07-19 on Chromium-Browser
Linux 2.6.38-10-generic
i wanted to try a different coding style for my tests, but unfortunately it doesn't work. This piece of code works well in the controller
var Webshop = {
startURL : "fefefe",
};
Webshop.init = function() {
_log("asd");
_alert(this.startURL);
};
Webshop.init();
but the playback wont work. The parsed script looks kinda weird
var Webshop = {
startURL:"fefefe",
};
Webshop.init = function() {
_sahi.schedule("_sahi._log(\"asd\");", "/home/wormi/workspace/sahi_projects/mt/platform.sah&n=6");
 _sahi._alert(Webshop.startURL);
};
Webshop.init();
Is there a way to work around this?
Regards
Wormi
Sahi Build: 2011-07-19 on Chromium-Browser
Linux 2.6.38-10-generic
Comments
Yes this is a current bug which will be fixed in one of the coming releases.
An ugly workaround, is to use
var $url = this.startURL;
_alert($url);
Regards,
Narayan
looking forward for the bugfix and a matched behavior of the playback and the recorders test field