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.

Underscore before own method

croymencroymen Members
edited December 2013 in Sahi - Open Source
Hi, is there way how to call own sahi functions with or without underscore.
E.g. I have function:
function myOwnFunc(){ }
and I want to call it no metter if I use underscore or not:
_myOwnFunc(); or myOWnFunc();

Answers

  • globalwormingglobalworming Moderators
    edited December 2013
    // have you tried
    function underAndNot () {
      /*stuff*/
    }
    
    _underAndNot = underAndNot;
    
  • Hi croymen,
    I have tried using the way mentioned by globalworming and it works as expected in both the latest released Sahi Pro and OS versions. Please let us know whether this works for you.

    Regards,
    Pratyush
Sign In or Register to comment.