A great API for bot creation

clubbs

Newbie
Joined
Jan 5, 2009
Messages
36
Reaction score
9
The API is called WatiN. It is for Web Application Testing but makes automation of sites easier.

When I first started making bots a while back for a few games I played I used this API and within one night I had a decent working bot.
I guess it's just to make it simpler to interact with websites.

The website is:
http://watin.sourceforge.net/

Any questions about it I will try my best to answer.
 
However, that is based on running through the sites' scripts and "clicking"/inputting data.

It is much more efficient to just look at the HTTP requests being sent and make requests with data you want to send. Use WireShark and look at the packets (then filter to HTTP).
 
I have used it for a couple of bots and found it worked great for me. Then again I was quite new to c# back then.
 
Thanks dude it's way better than .net native webbrowser (ajax support, external domain iframe/frame etc.).
 
Thanks dude it's way better than .net native webbrowser (ajax support, external domain iframe/frame etc.).

it is way better especially it supports firefox now. But still, it uses webbrowser :( so youll end with 1 cookie on all sessions.
 
Nice one! Unfortunately I've never used C# and I don't plan to ever learn it. If somebody here love Ruby/Perl and wants a similar thing, just try Mechanize. It doesn't support Javascript but at least has support to manage many cookies and html parsing
 
Code:
using (var browser = new IE("http://www.google.com"))
it has nice abstractions...
 
Back
Top