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.

Why I get this Error message? help

Cannot set property "hasError" of undefined to "true"

_include("smartFunctions.sah");
logInFn($username,$password);

**function from smartFunctions file***

function logInFn($username, $password){
_setValue(_textbox("com.smartstartinc.clientportal.DEV:id/email_edit_text"),$username);
_click(_textbox("com.smartstartinc.clientportal.DEV:id/password_edit_text"));
_setValue(_textbox("com.smartstartinc.clientportal.DEV:id/password_edit_text"),$password);
_click(_button("com.smartstartinc.clientportal.DEV:id/login_button"));
}

values are imported from a scenario CSV file. which include loginFn with username and password

Login passes everything seems to be fine but then, in the end, I get an error report. Why?

Best Answer

This discussion has been closed.