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 pick numeric values from one browser and paste in second browse

sandeepgautam43sandeepgautam43 Members
edited November -1 in Sahi - Open Source
My question is :

1.How to pick numeric values from one browser (these values pick from labels)
2.How to paste picked values on second browser (paste on textbox)

Comments

  • Hi sandeepgautam43,

    You can store the numeric values from one browser in a file and use _readFile() API to read the contents of the file on second browser.

    Regards
    Sumitra
  • Hi sandeep,

    I think this code might be useful.
    _navigateTo("http://sahi.co.in/demo");
    _click(_link("Link Test"));
    _click(_link("Back"));
    _call(window.open("http://www.w3schools.com", "calcWindow"));
    _selectWindow("calcWindow");
    _click(_link("Learn XML"));
    _closeWindow();
    _selectWindow();
    

    You could store the values from the popup window in variables and fetch them later in the main script.

    Regards,
    Sumitra
  • Very thanks Sumitra.

    It's working fine for me..

    thanks again..
This discussion has been closed.