Proxy for WebBrowser

Hi I am trying to automate an upload action, using WebBrowser, in a Windows Form Application

Basically what the program does is that it clicks on an element on the page, then sends the keys to the Windows upload window and presses Enter.

At work, the upload works ok using the standalone Internet Explorer app, but not in my program.

However at home, the image upload works ok in the program, which leads me to believe that it's a proxy issue.

This is what it looks like when the image is uploaded:

In my program it gets stuck, the grey bar doesnt disappear:

I tried the code below and all other combinations, set in app.config

 <> <defaultProxy> <proxy usesystemdefault="True" proxyaddress="ProxyURL" /> </defaultProxy> </> 

I also tried programatically:

WebRequest.GetSystemWebProxy(); var uri = WebRequest.DefaultWebProxy.GetProxy(new Uri("ProxyURL")); 

then accessing the page, but no luck. I think I am not doing something right here.

All other page elements load fine, I can add and save the changes made on the page.

Can someone help me with this, please?


by eonoots via /r/csharp

Leave a Reply