watin

Automated testing for Classic ASP

Does anyone do automated QA testing for a Classic ASP site? I started looking at WatIn and MBUnit but not sure of the best way to structer the tests. ...

How to fail tests by default if a dialog appears in watin

Whenever a dialog appears and there is no attached handler, watin auto closes the dialog. This is helpful when you don't want to add code for different/several simple confirmations the application might have. The issue is that using this default behavior can cause simple issues to go unnoticed, like a confirmation dialog appearing in t...

Does anyone has any suggestions on WEbAii, Watin and Selenuim

Hi Team, Please give me your valuable suggestions regarding the WebAii, Watin and Selenuim. Actually i have been using WebAii and its working fine for me but at the same time i have not used other frameworks to test Ajax supported web applications. Please share your thoughts or issues you faced while using one of these frameworks. T...

Watin Compatibility with Windows

I am running tests successfully on Windows Xp but not even got a single successful build while running through Windows 2003. Any one knows whether it is compatible or not as I read on some site that Watin is fully tested on Xp and not on other windows. Kind Regards ...

Getting This project doesn't have any tests error in cc.net

I am getting the following Warnings while running tests using cc.net c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets (,): warning MSB3245: Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"...

What is better approach to wait for elements on a page Waitforcomplete() or system.threading.thread.sleep()

I am Using WaitforComplete() in watiN but it doesnt seems to work well. As it executes the next statement even if you have given longer time to wait. I am using thread.sleep() to stop my application until it gets the desired page or element. But the thing is pages are so much dynamic that sometimes it takes much longer time as specified....

Using WatIN to determine website's position in google

Hi, I'm using WatIn - and have the current script: IE ie = new IE("http://www.google.co.il"); ie.TextField(Find.ByName("q")).TypeText(mykeyword); ie.Button(Find.ByName("btnG")).Click(); Now I want to be somehow understand which position my website is in. I know that google wraps website's urls in their pages with(i'm parsing google....

What is the Best Test Automation Approach for WatiN

I Studied both data-driven and keyword driven approaches. After reading, It seems data driven is better than keyword. For documentation purpose keyword sounds great. But it has many levels. I need guidance from people who actually have implemented Automation frameworks. Personally, I want to store all data in database or excel and break ...

All my tests are ignored in Nunit

I have written a HomePageClass Imports System Imports System.Collections.Generic Imports System.Text.RegularExpressions Imports System.Text Imports WatiN.Core Namespace TestDesign Public Class HomePage Inherits IE Public Const HomePageURL As String = "test" Public Sub New() MyBase.New(HomePageU...

How can I have a dynamic URL in generic class

I need to have a dynamic URL preferably from a Test Class. Can any one help me in formatting this design pattern to handle dynamic links from tests. instead of a constant HomePageURL. Namespace TestDesign Public Class HomePage Inherits IE Public Const HomePageURL As String = "testlink" Public Sub New() MyBase.New(H...

WatiN generates empty pages

Hi! When capturing images using WatiN the resulting images are just empty, solid black. The size of the images equals the screen size, though. For example the following snippet just saves two black images. using (IE ie = new IE()) { ie.ClearCache(); ie.BringToFront(); ie.GoTo("http://localhost/"); ...

Getting url of a page once making a form submission

I am designing a winforms based testing app (which is based upon WatiN). I specify a page to test and the value to insert into a textbox, and then click the corresponding button. Is it possible to add a query string to the request I make (when clicking button) and then get the URL of the next page? Based on this, I need to screen scrape...

WatiN test data reset/clean up

I'm wondering how people are currently resetting their data / cleaning up test remnants for their WatiN/Wartir tests? For example, lets say there's a test to add a user into the system and the username has to be unique. Obviously the first run without any users should work fine, but the second run will fail without manual intervention. ...

How to Handle File Upload popup

I'm using WatiN testing Tool I've a scenario where i need to upload a file through the popup window i'm writing scripts in c#.net. when i click on a radio button a popup appears where i need to upload the file and click on the Upload button.Please suggest me some solution. thankingyou ...

Watin script for handling Ajax popup

Hi I'm using WatiN testing tool and i'm writing c#.net scripts. I've a scenario where i need to change the theme of my web page, so to do this i need to click on a image button which opens a ajax popup with the image and "Apply Theme" button which is below the image now i need to click on the button so how to do this please suggest some...

How to Pass Multiple Values into TextField using Watin

Hi I'm using WatiN for web application testing. There is a field called enter choices where i need to add 3 values one after the another by pressing enter key i.e., add 1st value then press enter key and Add 2nd value press enter key, so please suggest me how to make this work using WatiN. thankingyou ...

Can i pass a key stroke (i.e., Enter Key) into application using WatiN scripts

Hi I'm using WatiN testing tool. can i pass a key stroke (i.e., pressing a enter key) to the application using WatiN scripts, this option was availabel in WatiR. Is this option available in WatiN? please suggest some solution to this problem. thanking you ...

Are open source automated testing tools and frameworks better than commercial products ?

About three years ago I switched from using commercial testing tools to using an open source testing framework (WatiN), and a UI automation framework I developed myself. Since doing this I think life is much better using these libraries and Visual Studio, than expensive dedicated testing tools with either their own languages, or VBA. A...

How to handle popup whose ID value in the URL changes each time the popup appears

Hi I'm working on WatiN tool. I've scenario where i need to check a checkbox and click on ok button in the popup window. i've used AttachtoIE method and used URL attribute to attach to the popup window. Now the problem is URL contains the ID value, which changes each time the popup appears.. so how to handle this or is there any other m...

Watin - Handling Confirm Dialogs with ConfirmDialogHandler

Hi, Using Watin, I'm trying to handle a confirm dialog box and tell watin to press "OK". This is reasoanbly well documented on the internet - you use a ConfirmDialogHandler and the "UseDialogOnce" method.. Except it isn't working for me. I get the following error: WatiN.Core.Exceptions.WatiNException: Dialog not available within 5 seco...