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.
Issues with _getDB
Hi Narayan
I have configured sahi on eclipse , my code is
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=C:/Selenium/Data2.xls;readOnly=false","","");
var $rs = db.select("select * from [AddProject$]"); ---- at this line in eclipse it gives an error
"Cannot invoke select(String) on the primitive type void"
I have configured sahi on eclipse , my code is
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=C:/Selenium/Data2.xls;readOnly=false","","");
var $rs = db.select("select * from [AddProject$]"); ---- at this line in eclipse it gives an error
"Cannot invoke select(String) on the primitive type void"
Comments
Please ignore that error. Eclipse is trying to find a definition for _getDB's return value which is not available to it because it is an internal Sahi function. We will check how we can fix it. But this should not affect the execution of the script.
Regards,
Narayan