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.
Problem with .xml file uploading
Hello,
I'm new to Sahi. I use WinXP and FF3.6 for testing with Sahi 3.5.
I tried to upload a file to a test portal, here is my code:
_setFile(_file("pt1:content:r1:1:pt1:if1"),"vehicle_import_2.xml", "actionAttribute");
_call(_file("pt1:content:r1:1:pt1:if1").type = "text");
_setValue(_textbox("pt1:content:r1:1:pt1:if1"), "C:\\App\\sahi35\\userdata\\vehicle_import_2.xml");
The uploading looks like succesfull, but nothing is uploaded. The page is empty. I try to put a third parametr to the _setFile() function - the parametr from action atribute of form tag. But it doesn't work. I tried everything tips from forums. Maybe there are some problems due to the proxy server. I haven't any idea. Thanks for any.
I'm new to Sahi. I use WinXP and FF3.6 for testing with Sahi 3.5.
I tried to upload a file to a test portal, here is my code:
_setFile(_file("pt1:content:r1:1:pt1:if1"),"vehicle_import_2.xml", "actionAttribute");
_call(_file("pt1:content:r1:1:pt1:if1").type = "text");
_setValue(_textbox("pt1:content:r1:1:pt1:if1"), "C:\\App\\sahi35\\userdata\\vehicle_import_2.xml");
The uploading looks like succesfull, but nothing is uploaded. The page is empty. I try to put a third parametr to the _setFile() function - the parametr from action atribute of form tag. But it doesn't work. I tried everything tips from forums. Maybe there are some problems due to the proxy server. I haven't any idea. Thanks for any.