Showing posts with label WATiN in web Application. Show all posts
Showing posts with label WATiN in web Application. Show all posts

Monday, 27 July 2009

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