18 January 2026:


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.

What does toggle_IE_proxy.exe actually do?

aswanaswan Members
edited November -1 in Sahi - Open Source
I'm struggling to get IE configured with the right proxy settings. Ideally I'd like to be able to:
* enable proxying
* set the proxy server
* set the proxy port
* disable "Bypass proxy server for local addresses"

As far as I understand, toggle_IE_proxy.exe only does the first of these, yet Sahi expects all four settings to be correct, meaning that the other settings have to be done some other way, e.g. manually.

So my questions are:
1. How does toggle_IE_proxy.exe enable proxying? Is it by modifying the registry?
2. Why doesn't toggle_IE_proxy.exe make the other settings listed above? There are registry keys for all of them...

Thanks for any help.

Comments

  • narayannarayan Administrators
    Hi Aswan,

    toggle_IE_proxy.exe only toggles the checkbox for "Use a proxy server for your LAN".
    This is because different environments have different proxy settings already configured in them, and we should correctly add and remove our proxy settings without affecting their systems. We had initially felt that automating this can be intrusive (many testers are not aware of proxy etc. and are surprised if we modify them). So, we do not have a full proxy changing mechanism as of now.

    Regards,
    Narayan
  • Hi Narayan,

    Thanks for your reply.

    So how does toggle_IE_proxy.exe actually toggle the "Use a proxy server" checkbox? I'm sure it doesn't use the mouse! Does it change a registry key and if so, which one? You can point me to the source code if you prefer.

    Regarding the other proxy settings, I don't understand the reasoning behind not touching them. They've got to be set somehow, otherwise Sahi simply won't work (as evidence, see how many of the issues posted on this forum are because of IE's proxy not being configured properly). So why not change them programmatically, especially if as you say, the typical user isn't aware of proxying and therefore doesn't have the knowledge to do it for themselves?
  • narayannarayan Administrators
    Hi Aswan,

    I agree with you about the number of problems reported. As I said before, "we initially felt that it can be intrusive". We no longer feel so, and are working on a solution to change it.

    I will add more details on how it does it as a follow up post. (I have to refer to that code)

    Regards,
    Narayan
Sign In or Register to comment.