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.

Problem with "countSimilar()" function

AkshadaAkshada Members
edited November -1 in Sahi - Open Source
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

Comments

  • SumitraSumitra Members
    Hi Akshada,

    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
  • AkshadaAkshada Members
    Hi Sumitra,

    U are right...There was this version problem!!!
    All sorted now!!
    Thanks a lot :)

    Regards
    Akshada
This discussion has been closed.