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.

_include() a third-party library such as MooTools

kchankchan Members
edited November -1 in Sahi - Open Source
I'm having trouble including MooTools (just the core javascript language enhancements, no browser stuff).

I think it's due mostly to the mandatory $ character in front of variables. Is there a workaround?

Comments

  • narayannarayan Administrators
    Hi kchan,

    How are you including it in your scripts?
    If you wish to have the extensions available to Sahi script, you could just open sahi/htdocs/spr/lib.js and add the moo tools functions at the top of lib.js.

    Regards,
    Narayan
  • kchankchan Members
    I got it to work. I'm using it on the proxy for serverside scripting rather than on the client.

    The problem turned out to be MooTools.More.Date had problems with its MooTools.Core.Events implementation, at least in rhino. MooTools.Core.* works fine, so I'll have to look elsewhere for a javascript date library.
Sign In or Register to comment.