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 Reading Data From Excel Sheet ?

ChaitanyaChaitanya Members
edited March 2013 in Sahi - Open Source
Will you please tell me how to read data from Excel Sheet ?

Best Answers

  • Hi,

    Please refer this link to work with excel.

    http://sahi.co.in/w/working-with-excel-sheets


    Regards,
    Pratik Shah
  • Hi
    Please go though below link for file upload.

    http://sahi.co.in/w/_setFile


    Regards,
    Pratik Shah
  • edited April 2013 Answer ✓
    Hi Chaitanya,

    hope the below code will help u

    
    _setFile(_file("SourceFileUpload"), "C:/file.txt");
       // Change the "type" attribute of file field
    if (_isIE()){
    	_call(_file("SourceFileUpload").outerHTML = _file("SourceFileUpload").outerHTML.replace(/type=file/, "type=text"));
    }else{
    	_call(_file("SourceFileUpload").type = "text");
    }
      // Set the value into the textbox
    _setValue(_textbox("SourceFileUpload"), "C:/file.txt");
    
    

Answers

Sign In or Register to comment.