18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
file upload issue
Hello Sumitra/deepti,
I am kapil kinikar from pune . we had meeting session last week regarding File upload issue.
i want to inform you that , still i am stuck with that issue. As per our discussion , my seniors wont allow me to provide the Source code of those screens. Please look in to this matter so that i can proceed further .
The only improovement in file upload issue is controller can upload file on add new document
screen only if you nevigate to that screen by providing URL... in script.
As it is not possible to follow for testing purpose because , when we click [Add new document]button, the enter invoice form get saved. and while opening that [Add new document, window where we tried to upload file ] System will generate a new [INVOICE ID].
By using this invoice ID with the invoice number system will open that Add new document window where we will have to upload document. So unless we click on [Upload new document button] system will not generate that URL containing Invoice number and INVOICE ID.
So , i think most of the work is done and need little bit modification .
so , i am requesting you again please help me to sort out this problem . so that i can implement Sahi testing tool for complete testing process.
Here i am again posting the complete script for your reference.
_click(_cell("Enter Invoice"));
_click(_button("dbcPurchaseOrder_ulbSearchButton"));
_setSelected(_select("dbcPurchaseOrder\$ulbDropDown"), "0011806");
_setValue(_textbox("txtInvoiceNumber"), "9011");
_setValue(_textbox("dtpInvoiceDate"), "07/28/2011");
_setValue(_textbox("dtpDateReceived"), "07/25/2011");
_setValue(_textbox("txtInvoiceAmount"), "100");
_setValue(_textarea("txtInvoiceDescription"), "iyuiyiuyiyuiyi");
_click(_submit("Edit"));
_setValue(_textbox("dtgrdTaskDistribution\$ctl02\$txtDistribution"), "100.00");
_click(_submit("Update"));
_click(_submit("Upload New Document"));
_navigateTo("http://development.itsiwc1.com/AP.InterfaceLayer/APInvoice/AddEditInvoiceDocument.aspx?mode=Add&ProjectNumber=00118.0200&InvoiceId=54010&InvoiceNumber=9010&InvoiceDocumentId=0"
;
_wait(2000);
_setValue(_textbox("txtDocument"), "kapil");
_setFile(_file("fileUploadInvoiceFile"), "C:\\fileupload\\Test.txt");
_setFile(_file("fileUploadInvoiceFile"), "C:\\fileupload\\Test.txt");
_call(_file("fileUploadInvoiceFile").outerHTML = '<input name="fileUploadInvoiceFile" type="text" id="fileUploadInvoiceFile" size="40" value value="C:\\fileupload\\Test.txt" />');
_click(_submit("Save"));
_click(_submit("Save & Submit"));
I am kapil kinikar from pune . we had meeting session last week regarding File upload issue.
i want to inform you that , still i am stuck with that issue. As per our discussion , my seniors wont allow me to provide the Source code of those screens. Please look in to this matter so that i can proceed further .
The only improovement in file upload issue is controller can upload file on add new document
screen only if you nevigate to that screen by providing URL... in script.
As it is not possible to follow for testing purpose because , when we click [Add new document]button, the enter invoice form get saved. and while opening that [Add new document, window where we tried to upload file ] System will generate a new [INVOICE ID].
By using this invoice ID with the invoice number system will open that Add new document window where we will have to upload document. So unless we click on [Upload new document button] system will not generate that URL containing Invoice number and INVOICE ID.
So , i think most of the work is done and need little bit modification .
so , i am requesting you again please help me to sort out this problem . so that i can implement Sahi testing tool for complete testing process.
Here i am again posting the complete script for your reference.
_click(_cell("Enter Invoice"));
_click(_button("dbcPurchaseOrder_ulbSearchButton"));
_setSelected(_select("dbcPurchaseOrder\$ulbDropDown"), "0011806");
_setValue(_textbox("txtInvoiceNumber"), "9011");
_setValue(_textbox("dtpInvoiceDate"), "07/28/2011");
_setValue(_textbox("dtpDateReceived"), "07/25/2011");
_setValue(_textbox("txtInvoiceAmount"), "100");
_setValue(_textarea("txtInvoiceDescription"), "iyuiyiuyiyuiyi");
_click(_submit("Edit"));
_setValue(_textbox("dtgrdTaskDistribution\$ctl02\$txtDistribution"), "100.00");
_click(_submit("Update"));
_click(_submit("Upload New Document"));
_navigateTo("http://development.itsiwc1.com/AP.InterfaceLayer/APInvoice/AddEditInvoiceDocument.aspx?mode=Add&ProjectNumber=00118.0200&InvoiceId=54010&InvoiceNumber=9010&InvoiceDocumentId=0"
_wait(2000);
_setValue(_textbox("txtDocument"), "kapil");
_setFile(_file("fileUploadInvoiceFile"), "C:\\fileupload\\Test.txt");
_setFile(_file("fileUploadInvoiceFile"), "C:\\fileupload\\Test.txt");
_call(_file("fileUploadInvoiceFile").outerHTML = '<input name="fileUploadInvoiceFile" type="text" id="fileUploadInvoiceFile" size="40" value value="C:\\fileupload\\Test.txt" />');
_click(_submit("Save"));
_click(_submit("Save & Submit"));