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.
Problem with "countSimilar()" function
Hi Narayan,
I am using a linux system, where i am using SAHI for Automation.
Some of us use Windows systems.
The countSimilar function returns proper count on my Linux system, whereas on Windows machine when we try to run the same code, it gives the following error:
error:_sahi.setServerVarPlain('___lastValue___Tue Jun 14 14:53:45 IST 2011', _sahi._count("_image", /Tracker User.*/))
TypeError: _sahi._count is not a function
Is it because of difference in systems or is there something else?
Thanking in advance!!
Regards
Akshada
I am using a linux system, where i am using SAHI for Automation.
Some of us use Windows systems.
The countSimilar function returns proper count on my Linux system, whereas on Windows machine when we try to run the same code, it gives the following error:
error:_sahi.setServerVarPlain('___lastValue___Tue Jun 14 14:53:45 IST 2011', _sahi._count("_image", /Tracker User.*/))
TypeError: _sahi._count is not a function
Is it because of difference in systems or is there something else?
Thanking in advance!!
Regards
Akshada
This discussion has been closed.
Comments
countSimilar() java API is available since the Sahi V3.5 2011-03-14 build.
Please check your Sahi version on the windows machine and make sure that it is newer than this build.
Regards
Sumitra
U are right...There was this version problem!!!
All sorted now!!
Thanks a lot
Regards
Akshada