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.

how to call javascript function in .sah file

nagarjunnagarjun Members
edited November -1 in Sahi - Open Source
hi all,

how to call javascript function in .sah file.

thanks in advance.
Nagarjun.p

Comments

  • narayannarayan Administrators
    Normally?

    Could you please elaborate on your question?

    Regards,
    Narayan
  • nagarjunnagarjun Members
    function getBrowserVersion(){

    //code for to get browser version

    return "version";

    }

    i have written above in one.sah file

    i have to access getBrowserVersion() function in two.sah.

    please reply as soon as possible.

    nagarjun.p
  • narayannarayan Administrators
    Use _include("one.sah") at the start of two.sah to include it.
Sign In or Register to comment.