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.

JS library support

ShuvadeepShuvadeep Members
edited November -1 in Sahi - Open Source
Does SAHI latest version support JQuery and Prototype ?

Comments

  • Also does it support YUI(Yahoo User Interface) Library ?
  • narayannarayan Administrators
    Welcome Shuvadeep!
    Yes it supports all the frameworks mentioned above. If you face any problems please let us know.
    Regards,
    Narayan
  • Hi narayan,
    How can i call a function from other file into sahi script .
    please let me know. suppose i have written one function and save in notepad as .js now i want to call this function into my sahi script ..what would be the steps
  • ksumit0308,

    Couldn't you just put your function in a file called "functions.sah" then use _include() function?

    // See below
    _include("functions.sah");
    _setValue(_textbox("username"));
    :
    yourfunction();
    :
    _click(_button("Close"));

    RR
  • Hi i am having one textfile called name.txt in which there are names like sumit,Amit,rohit,sujit etc now i want to write a code in java script so that i can fetch each name from text file and set in text box of application. i am able to read a file but not able to set the name in text box. please help me out
  • Hi,

    Just go through this post:
    http://sahi.co.in/forums/viewtopic.php?id=429
    Here you will get some idea how you can do it.
    You can then use the variable $qual (in the post example) in _setValue() to set the value.
    Revert back in case you need further assistance.

    Regards,
    Pankaj.
  • Hi ,
    thats matching pattern is fine. But i want to print each name which is in name.txt file one by one from name.txt file. suppose there are 5 name in text file now i want to see each aame one by one throgh _alert function .
  • Hi,
    here is an example:
    var $path = "C:\\sahi\\scripts\\name.txt";
    var $content = _readFile($path);
    var $lines = $content.split("\n");
    
    for(var $i = 0; $i <$lines.length; $i++)
        _alert($lines[$i]);
    
    The text file contents should look like:
    Name 1
    Name 2
    Name 3
    
    Regards,
    Pankaj.
  • Hi i am
Sign In or Register to comment.