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.

Unable to compare two values using assertEqual code.

mohit198mohit198 Members
edited November -1 in Sahi - Open Source
Hi,

When execute below code
_assertEqual($firstname+" "+$lastname,_getSelectedText(_select("ctl00\$cphPage\$lstNames")));

Out put in log:
_assertEqual("", _getSelectedText(_select("ctl00\$cphPage\$lstNames")));
Assertion Failed.
Expected:[]
Actual:[undefined] at Feb 13, 2012 2:58:36 PM

Please help

regards,
mohit
Sign In or Register to comment.