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.
Possible to prevent SAHI from downloading URLs that match a pattern?
Hello,
OS Name: Windows XP
Browser Name and version: FireFox 5.0.1
Sahi Build: Sahi Pro 3.6 (Build: 2011-11-29)
I am trying to automate test cases for a particular GWT based application which we use within our intranet.
When I navigate to the landing page of the application, SAHI encounters a URL which it attempts to download. The URL is:
http(colon)//ourdomain/webapp/bax/com.etc.etc.etc.CommandDispatcher.rc
SAHI's log output reads:
05.12.2011 12:58:52 net.sf.sahi.RemoteRequestProcessor downloadFile
INFO: Setting download_lastFile = com.etc.etc.etc.CommandDispatcher.rc
And the browser displays:
Response was returned with an invalid HTTP status code 204
I think this issue comes up because SAHI tries to download the file rather than to process it.
My question:
Is there any way to prevent SAHI from downloading URLs that match a certain pattern? I know that the opposite is possible, i.e. to tell SAHI in which cases URLs that match a certain pattern should be downloaded.
Any ideas would be appreciated
Thanks for a great product!
OS Name: Windows XP
Browser Name and version: FireFox 5.0.1
Sahi Build: Sahi Pro 3.6 (Build: 2011-11-29)
I am trying to automate test cases for a particular GWT based application which we use within our intranet.
When I navigate to the landing page of the application, SAHI encounters a URL which it attempts to download. The URL is:
http(colon)//ourdomain/webapp/bax/com.etc.etc.etc.CommandDispatcher.rc
SAHI's log output reads:
05.12.2011 12:58:52 net.sf.sahi.RemoteRequestProcessor downloadFile
INFO: Setting download_lastFile = com.etc.etc.etc.CommandDispatcher.rc
And the browser displays:
Response was returned with an invalid HTTP status code 204
I think this issue comes up because SAHI tries to download the file rather than to process it.
My question:
Is there any way to prevent SAHI from downloading URLs that match a certain pattern? I know that the opposite is possible, i.e. to tell SAHI in which cases URLs that match a certain pattern should be downloaded.
Any ideas would be appreciated
Thanks for a great product!
This discussion has been closed.
Comments
Kindly add this:
download.download_if_contentdisposition_is_attachment=false in userdata.properties by navigating to <sahi-home>/userdata/config and Restart Sahi.
Check if this solves your issue.
Regards
Sumitra
Thank you again. Great product, top notch support.