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.
_userDataDir() doesn't work
hi narayan
could you help me?
_debug("baby1"); at 2010/07/26 10:48:48
_debug("baby2"); at 2010/07/26 10:48:48
_debug(_userDataDir());
TypeError: Object doesn’t support this property or method
No trace available
Click for browser script at 2010/07/26 10:48:58
in sahi console
Debug: baby1
Debug: baby2
in the sahi controller record tab
_userDataDir() not appears in APIs List of record tab
I think it's deprecated , how can i get the userdir
but it really exists in lib.js
and I test the
_debug(net.sf.sahi.config.Configuration.getUserDataDir()); error
_debug(Packages.net.sf.sahi.config.Configuration.getUserDataDir()); error
could you help me?
_debug("baby1"); at 2010/07/26 10:48:48
_debug("baby2"); at 2010/07/26 10:48:48
_debug(_userDataDir());
TypeError: Object doesn’t support this property or method
No trace available
Click for browser script at 2010/07/26 10:48:58
in sahi console
Debug: baby1
Debug: baby2
in the sahi controller record tab
_userDataDir() not appears in APIs List of record tab
I think it's deprecated , how can i get the userdir
but it really exists in lib.js
and I test the
_debug(net.sf.sahi.config.Configuration.getUserDataDir()); error
_debug(Packages.net.sf.sahi.config.Configuration.getUserDataDir()); error
This discussion has been closed.
Comments
Use it like this:
var $dir = _userDataDir();
_debug($dir);
Some functions are not available on the browser. You will first need to set it to a variable, and then use it. We are fixing these anomalies.
Regards,
Narayan
Thank you for your help!!
It realy works!!!!!