| Share

Saturday, August 05, 2006

Toggling Proxy on Browsers

One of the pain points of using Sahi is to remember to set the proxy on the browser while testing and removing it later.

There are a few tools which alleviate this well.

Firefox:

Use Proxy Button to toggle the proxy in one click from the Firefox toolbar.

Internet Explorer:

Use ProxyPal to toggle proxy from the IE toolbar.

Use /tools/toggle_IE_proxy.exe to toggle proxy.

Command Line:
toggle_IE_proxy.exe enable
toggle_IE_proxy.exe disable

Ant:

<antcall target="proxyon"/>
<antcall target="proxyoff"/>

<target name="proxyon">
<exec executable="tools/toggle_IE_proxy.exe">
<arg value="enable"/>
</exec>
</target>

<target name="proxyoff">
<exec executable="tools/toggle_IE_proxy.exe">
<arg value="disable"/>
</exec>
</target>

Full ant file

Sahi Nightly Build 2006-08-06 released

This build has the following added features:

* File upload support
* Proxy toggling through ant/command line for Internet Explorer
* _expectConfirm(boolean) and _lastConfirm() apis added.

Special thanks to Sriram Narayanan (Ram to ThoughtWorkers) who created toggle_IE_proxy.exe, a 34 KB file of immense use to Sahi users.

Sahi

My personal blog now seems to have a little too much of Sahi on it.
Hence this blog.
This will mostly have updates, releases and upcoming features.