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.

copy paste

barakRbarakR Members
edited November -1 in Sahi - Open Source
hi
i would like to copy text and paste it in notepad.
is it possible to do it?
if so how can i do it.
thanks for the help

Comments

  • Hi barakR,

    In Sahi, you can get the text instead of copying it and write it into a notepad.

    The script would look like this:
    _navigateTo("http://sahi.co.in/demo/training/login.htm")
    _setValue(_textbox("user"), "test");
    _setValue(_password("password"), "secret");
    _click(_submit("Login"));
    var $text = _getText(_cell("Python Cookbook"));
    _writeToFile($text, "D:\\allresults.txt");
    _click(_button("Logout"));
    

    Regards
    Sumitra
  • thank you for your reply

    is it passable that Sahi can run HTML file?
Sign In or Register to comment.