Run WATiN code thorugh web application

To run your WATiN Automation code/Script from web application or by using web application

Jus add this Header tag in .aspx file

< AspCompat=”true” >

Example: – suppose that you have code file as MyWatinCode.aspx and MyWatinCode.aspx.cs.

Now go to MyWatinCode.aspx file and replace the top most Header Tag

<@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=” MyWatinCode.aspx.cs” Inherits=”AutomationTesting._ MyWatinCode” ValidateRequest=”false”>

By

<@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=” MyWatinCode.aspx.cs” Inherits=”AutomationTesting._ MyWatinCode” AspCompat=”true” ValidateRequest=”false” >

And run your Automation code in web Application .if still you are facing any issues please reply me.

Correction/Comments are always welcome 🙂

Happy Automation…..

Thanks,

Md.Jawed

5 thoughts on “Run WATiN code thorugh web application

  1. hey,..I had been through your blog and its really helpful for me..Why don't you start blogging about different (classes, functions, attributes) that are being used most popularly in WatiN for the people to get to familiar with WatiN commands and their usage very easily?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s