18 January 2026:


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

Shrikant PatraShrikant Patra Members
edited November -1 in Sahi - Open Source
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"

Comments

  • narayannarayan Administrators
    Hi Shrikant,

    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
Sign In or Register to comment.