Search code examples
sahifile-uri

Sahi : File:// protocol support in Sahi


I am evaluating Sahi for automation. My requirement is to automate a web application that is static and based on Html and JavaScript. I tried to record the test but it did not happen.

file:///C:/Automation/welcome.html

But Sahi doesn't record it. I saw on [url]http://sahi.sourceforge.net/using.html[/url] site that only ##Keep "Use the same proxy for all protocol" unchecked as Sahi does not understand protocols other than HTTP##

Does File:// or other protocols support is not been provided yet? Please let me know is there any alternative Sahi provides for such requirement? I could not find it on any forum, please help. Thanks


Solution

  • Please use a webserver to open your pages and then access it through Sahi. Sahi will not able to automate pages with the file protocol.