Sadhurthan
Sadhurthan

Reputation: 35

C# code for automating a website

All I want is to record the actions I perform in a website and have to get the code generated for the same in c#.To make it clear,I juss want to run the code so that the manual activity is performed automatically.Any help would be great.Thanks a lot.

Upvotes: 0

Views: 1917

Answers (1)

Mike Chaliy
Mike Chaliy

Reputation: 26648

  1. Visual Studio has web test recording, it actually can generate code for you. This will record integration between browser and server. So if you rerun, server will think that you are doing something. This option is not browser automation.

  2. WatiN is another option. This time, it is browser automation tool. It has recording tool too.

  3. Third option is Selenium, very similar to WatiN. There are many tools to record Selenium scripts. Most supported one is Selenium IDE.

All tools, are quite easy to work with, and you can find good tutorials on the respective sites.

My best guess, of your needs is that you need #2 or #3. It looks like #3 is more active/mature tool, but I used both with success, so no problem to choose #2.

If you will go with #1, check what edition of Visual Studio you use. I am afraid, Web Testing could be available only in top editions, like Ultimate.

Upvotes: 1

Related Questions