.net - Does Not Work WatiN With Proxy

Sep 14, 2010

I've been doing some testing with WatiN lately. For one of the tests I will need to use a proxy to perform the tests. I can set the proxy manually from IE, but I want to do it programatically. In the past I've had success setting proxy for webbrowser control using the code from here [URL] Unfortunately this does not work for WatiN.

View 1 Replies


ADVERTISEMENT

Change Proxy Settings While Using Watin?

Apr 13, 2010

I am using Watin mostly to automate thing I do by hand. Sometimes, I need to change proxy. To do this, I have to set up IE to use a local proxy all the time (listens locally and forwards to a remote porxy), and then by hand change the settings of that program each time I need to use another proxy.

This is not an elegant solution! It may work, but it is not nice.

So, my question is, how do I change programmatically IE settings while using Watin? I code in VB.NET.

View 1 Replies

VS 2008 Change Proxy Sub Doesn't Work On Windows 2003

Mar 12, 2012

I'm having trouble getting this sub to work on Windows 2003. It works on Windows XP and Windows 7. Windows 2003 has "wininet.dll".

change_proxy("123.115.112.222:3128")
*********************************
Public Sub change_proxy(ByRef proxy_port As String)

[Code].....

View 4 Replies

.net - Bind Watin To The Webbrowser Control?

Sep 14, 2010

I'm using the following code to bind watin to a webbrowser on the winform.

Dim w As IE = New IE(WebBrowser1.ActiveXInstance)
Settings.AutoStartDialogWatcher = False
w.GoTo("http://google.com")

I can see from wireshark that the page get's loaded, but the form is frozen until a exception gets thrown "Timeout while Internet Explorer busy". Is there a way to bind watin to the webbrowser control?

View 2 Replies

Find Multiple Buttons With WaTin?

Jan 13, 2010

I have a facebook account that has around 1200 friend request. Obviously I dont wanna go through and click each one. So I figure I would make a App for it. So I have it working, but its going sooooo Slow....I have it, Clicking the first Confirm button then closing IE, Then opening it back up and clicking the next one. I know it would be alot faster if i could keep that instance of IE open and have it go through and click each Confirm Button but I cant figure out away to do it. If I put it in a loop, it will submit the first one, then when it loops for the second time it finds the first one again, and says its disabled. Any Idea of how I can get it to move on to the next Confirm button? Here is the code I got written so far.

View 1 Replies

Combobox - Watin- Cant Select An Item From A Selectlist Dropdown?

Mar 11, 2011

net/watin application and I am trying to select and item from a combobox on a client's website. I can use watin to drop the list down and select (highlite) an item from the list but the selected item will not populate the textbox above. It seems like watin's .select() is not triggering an event to fire.I can work around this by writing in the first letter of the item in the combobox and use the hypertext feature to select the item but this is not ideal.

View 2 Replies

Why Does WatiN Timeout When It Is Indirectly Called By A Unit Test

Aug 12, 2009

I'm using WatiN to run IE inside a VB .NET function:

[Code]...

View 1 Replies

Proxy - Passing Data Via College Proxy

Oct 15, 2011

I'm making a application to use in college to retrieve my calendar and other things in VB.NET. But my college uses a proxy so when I connect my laptop I need to change the internet settings in my web browser to view web pages. how I would send requests via a proxy server in VB.NET? Or is there a piece of software that I can download which tunnels all connections or is there a setting in win7 does this?

View 1 Replies

VS 2010 : HTTPWebRequest.Proxy : Set The Proxy For A Web Request?

Nov 24, 2010

I'd like to set the proxy for a web request. However, when I say, for example, request.proxy = "x.x.x.x:xxxxx", it gives me the error "String cannot be converted to webproxy". How can I get around this and actually set the proxy?

View 2 Replies

LINQ Group By Multiple Values Does Not Work Well But Work Well In C#

May 29, 2012

I found that when group by multiple values does not work well with VB.NET, but it works well with C# ,here are my code, is there something wrong with my VB.NET Code? Here is my VB.NET code:

[Code]...

View 1 Replies

PerformClick() Doesn't Work - How To Make It Work

Feb 2, 2011

I have an application that requires data be entered, and after entering, a button is clicked to process that data. Clicking the button works just as it should--the data is processed properly. In constructing a test module, I provide a set of data values, followed by:

btnWhatever.PerformClick()

Nothing happens. I have used this syntax for years, and it has always worked flawlessly. I have triple checked everything else and isolated the problem to the failure of the PerformClick(). The PerformClick() is in a test subroutine that does nothing but fill textboxes and labels with default data, then calls the PerformClick() on the button to begin processing. Again, the button works fine, the data is entered as it should be, but the PerformClick() does not fire the click event.

View 21 Replies

VS 2008 Could Not Get Form To Work On Work Computer

Aug 21, 2009

I have a form that works on my local Machine I created into. I have Office 2007 on this machine. I created the Form with the Excel 12 Reference. I move the Entire conetence of the Project folder to my work computer. Which has Office 2003. Do I need to recreate the form with the Excel 11 reference. I could not get the form to work on work computer. IT has a com error. I am acessing the EXE for the debug folder w/in the Bin Folder.

View 7 Replies

.net - Proxy With Smtp?

Jan 16, 2012

Private Function SendEMail(ByVal sendTo As String, ByVal subject As String) As Boolean
Try
''# Dim cr As New System.Net.NetworkCredential("me073055", "me271288")
''# Dim pr As New System.Net.WebProxy("172.31.100.25", 3128)

[code]....

I am using the given code to send emails ...i am behind a proxy server..is there any way to give the proxy settings to the smtp client??If not then how do i send emails from behind a proxy server..??These are the settings i need to use to connect to the internet...i need to set this settings in my email client also.

View 1 Replies

Changing IP / Proxy Within VB

Nov 17, 2011

Is it possible to change the computers IP/Proxy within VB I have done some research but have come up empty.

View 2 Replies

How To Set Proxy To Null

Mar 8, 2009

I am using webclient to get and send various information through my vb.net application.All of the code works fine, except that whenever the webclient is used, it seems to lock-up the application (as if its going to crash) but then recovers after it has recieved/send the required data.I have googled around, and apparently i need to set the proxy to null (which is fine because i dont use a proxy anyway) but i dont know how do do this.Could anyone tell me how to set the proxy to null please?

View 2 Replies

Proxy For Network?

Apr 3, 2011

How to make a vb.net application that allows me to play online games using web proxies?

I tried

Private Sub enableProxy()
Dim proxy as new WebProxy("115.160.178.253:80")
WebRequest.DefaultWebProxy = proxy
End Sub

But that only works for httpwebrequests.

View 1 Replies

Proxy Only For WebBrowser

Jul 6, 2011

Is it possible to set a WebBrowser control to use a proxy connection without changing all the other browsers also changing to that proxy?To clarify, I have an application that is monitoring a website but refreshing often enough during the day that I'm getting "you've made too many requests, please try again later". I'd like to get around that by using a proxy. Unfortunately not all anonymous proxies can be trusted for secure information like credit card information, so I only want to proxy the webbrowser control and not proxy any other non-application browsers.There is a site that explains quite well how to change the proxy (link not included, not certain on whether link posting allowed) but it changes the global settings on all browsers.I've tried to use 3rd party components (ex IPWorks HTTP control) however that doesn't work well with script-heavy sites that load and update dynamically - it only gets the empty skeleton of the page before being populated from the server DB.

View 2 Replies

Proxy With Web Browser

Feb 6, 2009

I want to use Proxy with web browser. I got Code which i found some where in vb forums.[code]Its not Working for me.. Please Help me. Random Proxy is added correctly in Listbox.

View 17 Replies

Set Up To Support One Proxy?

Oct 6, 2011

I am attempting to make a browser. I have it set up to where it can support one proxy. My question, is, How would I make it to where the program would read from a text file, and use those proxies? 1 proxy per line?

View 1 Replies

SQL Query Over Proxy?

Mar 11, 2011

I have an application in vb.net which connects to a remote SQL Server. This works fine. But now I have the problem, that my application has to work in a network with a proxy.

My source-code for the sql query is at the moment:

c.ConnectionString = "server=xxx.xxx.xxx.xxx;uid=User;pwd=Pass;database=DBName; "
c.Open()
da.SelectCommand = (New MySqlClient.MySqlCommand("SELECT * FROM Table_S", c))
da.Fill(dt_S)

View 7 Replies

Use A Proxy IP In WebBrowser?

Dec 9, 2011

code to use a Proxy IP in WebBrowser?

View 2 Replies

Use Private Proxy With VB?

Mar 19, 2012

Right now I'm using:

Dim newProxy As New IEProxy
If newProxy.SetProxy(proxyip) Then
....

[code].....

View 2 Replies

Use Webbrowser With A Proxy?

Sep 20, 2011

I have strProxy and I want to load myurl.com and get the source code.

I've heard HttpWebRequest is the way to go for speed, since I will be loading many different webpages with proxies.

What is the simplest way to load the webpage with a proxy so I can then scrape the source?

View 4 Replies

Using SmtpClient Through A Proxy?

Nov 29, 2011

I've got a vb program that sends an email using SmtpClient. I can't seem to get the message to pass the Proxy server (ccproxy). When sending thru outlook, I set the SMTP server to the Proxy server address, and in the username field I add a #and the SMTP server name following the username. I have tried several differt things here, but to no avail. Here is a sample of how I am trying to send this:

emailuserid = "me@mysmtp.com#mail.mysmtp.com"
emailpassword = "mypassword"
smtpserver = "192.168.0.1"

View 29 Replies

VS 2008 : How To Use A Proxy

Sep 29, 2011

how to use a proxy ?I can use a proxy in vb with a webbrowser or httpwerequest but this not not use the proxy if i open my own browser :/What im wanting is to set a proxy in vb then open my own browser and i will be using the proxy.

View 11 Replies

Webbrowser That Can Use A Proxy?

Nov 5, 2009

I'm restarting a previous project and need to know how to load a proxy from a txt file and choose which proxy to use.

View 3 Replies

Access A Website Using Proxy?

Dec 20, 2010

I have no idea how to do this, using a webbrowser in VB(the normal one or, micorosoft webbrowser?)or can this be done using a Webrequest or webclient in VB.net.[code]...

All I want is the website Im trying to visit to think that I visited it with this proxy's IP.I know this is possible because ther are websites where you only type the URL in a textbox and it starts surfing for you like("planetmuffin.com"). How can this be possible on a website and not on Vb.net?

View 2 Replies

Change Proxy Setting Of IE?

Aug 13, 2008

i want to change proxy setting of IE through code.

View 1 Replies

Check Proxy's From Listbox?

Jun 8, 2011

So i have a listbox that i have there for a list of proxies. I have 4 buttons pertaining to it. they are find, load, save and check

I have the first 3 finished and working but i haven't found anything useful pertaining to checking the proxies, the only one that i found took like 6 seconds per proxy so it took a lot of time for a decent sized list.

So how could i make it that on the press of that button, it checks all of the proxies in the listbox and it deletes the slow ones and the ones that flat out do not work. and does this at a decent pace(so it would probably be multi threaded)

and since i can not figure this out i have no code pertaining to this except for the sub for the button click i do not feel there is a need to post code

View 2 Replies

Configure Proxy For A Webbrowser?

Oct 24, 2010

How to configure the proxy for a webbrowser (vb.net)

server has proxy and should login to access internet.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved