watin

Web Application Testing for .Net (WatiN Test Recorder)

我怕爱的太早我们不能终老 提交于 2019-11-30 19:53:17
I've been using WatiN as a testing tool for my current project. Besides the minor bugs with the Test Recorder, I've been able to use it and automate a lot of my tests in conjunction with NUnit. Anyone else out there with experience with different tools they might suggest? I have used: WatiN AutomatedQA TestComplete All of them have had their purpose and are very good tools. I have used Selenium before and hooked it into CruiseControl.NET and while it has it's quirks worked quite well. Here are some useful links. http://selenium-ide.openqa.org/ http://wiki.openqa.org/display/SIDE/Automating

Web Application Testing for .Net (WatiN Test Recorder)

喜欢而已 提交于 2019-11-30 04:37:51
问题 I've been using WatiN as a testing tool for my current project. Besides the minor bugs with the Test Recorder, I've been able to use it and automate a lot of my tests in conjunction with NUnit. Anyone else out there with experience with different tools they might suggest? 回答1: I have used: WatiN AutomatedQA TestComplete All of them have had their purpose and are very good tools. 回答2: I have used Selenium before and hooked it into CruiseControl.NET and while it has it's quirks worked quite

disable IE visibility while using WatiN

浪尽此生 提交于 2019-11-29 16:26:05
I use watin, because I need to open some websites in the background for which the user needs to support Javascript. I don't know if WatiN is the best for this job, but at the moment it takes very long until Internet Explorer gets visible. I need to disable to popping up of Internet Explorer while using WatiN. User doesn't need to see the opening of sites. Is it possible while using WatiN to visit a website without showing it the user or should I use another alternative which supports JS on client side? My code at the moment; public static void visitURL() { IE iehandler = new IE("http://www

Watin & IE9 - Cant click ok buttons

ε祈祈猫儿з 提交于 2019-11-29 14:55:18
I'm using Watin to navigate through a large number of different websites, and I'm using the great solution here to automatically click ok on all the javascript and ie boxes that popup. The problem is, this solution works great for ie6-ie8, but no longer works for IE9. Does anyone have anyone suggestions on how to get IE9 to auto click/close all prompts? (I'm using the latest Watin release, and the code below) public class something { public something() { IE browser = new IE("about:blank"); addHandlers(browser); .. do stuff with browser } //Just click ok to everything private void addHandlers

WatiN support for HTML5 tags

自作多情 提交于 2019-11-29 03:52:16
I have the following HTML: <input type="email" id="email"> I want to type text into it from WatiN : var field = Browser.TextField("email"); Assert.IsTrue(field.Exists); But the field can't be found. This is because WatiN doesn't support HTML5 tags yet. I found a solution to this by creating an extended TextField-class: [ElementTag("input", InputType = "text", Index = 0)] [ElementTag("input", InputType = "password", Index = 1)] [ElementTag("input", InputType = "textarea", Index = 2)] [ElementTag("input", InputType = "hidden", Index = 3)] [ElementTag("textarea", Index = 4)] [ElementTag("input",

WatiN and .net winforms WebBrowser control - is DialogWatcher possible?

筅森魡賤 提交于 2019-11-29 02:39:31
Our target is: Watin-enabled browser testing embedded in a .net winform. Currently, we are using a .net WebBrowser control to embed browser behavior in a winform. We are attaching WatiN to the WebBroswer control on the form with code like this ( thanks prostynick ): var thread = new Thread(() => { Settings.AutoStartDialogWatcher = false; var ie = new IE(webBrowser1.ActiveXInstance); ie.GoTo("http://www.google.com"); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); The problem is this - the "winform browser" needs to handle popups during testing/automation. Question: How can

C# WatiN - Add an AlertDialogHandler to click ok button on every Alert dialog window

白昼怎懂夜的黑 提交于 2019-11-29 02:01:14
Hello Those who have used WatiN likely also used DialogHandlers . Well can someone teach me how can i assign a DialogHandler that will handle any Alert Box window.alert() , of a specific IE instance under WatiN control . The DialogHandler only has to click in the OK button for very alert dialog box, in that case i think we need an AlertDialogHandler that basically only has to click the OK button. AlertDialogHandler.OKButton.Click() I've search the web and found a few examples.. But they work for a small period of time or the time you specify, i need one that will work forever, until i choose

WatiN System.IO.FileNotFoundException Interop.SHDocVw

落花浮王杯 提交于 2019-11-28 20:06:01
I have just started to receive the following error when running my WatIn tests. System.IO.FileNotFoundException : Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cannot find the file specified. I have searched the web and tried the following solutions, none of which work. http://linrayusa.blogspot.com/2008/08/vsts-2008-could-not-load-file-or.html WatiN Error Could not Load Assembly http://blogs.msdn.com/b/dougste/archive/2006/09/05/741329.aspx Can anyone assist? I always end up

Unable to fire jQuery change() event on selectlist from WatiN

一曲冷凌霜 提交于 2019-11-28 10:43:22
I have a select box <select id="myselectbox"> <option value='a'>First option</option> <option value='b'>Second option</option> </select> And jquery $('#myselectbox').change(function() { ... }); And a WatiN test SelectList list = Browser.SelectList(Find.ById("myselectbox")); list.Select("First option"); In IE, this changes the select box, but doesn't fire the jquery event handler. I am aware of the many issues surrounding the change() event handler in IE. So I have tried adding a number of things to the test to force the event to fire: list.Blur(); list.Keypress('\r'); list.Click(); I also

WatiN, NUnit and CruiseControl.NET— Error message 800704a6

那年仲夏 提交于 2019-11-28 08:40:51
问题 When running a suite of tests in NUnit with WatiN through CruiseControl.NET (as a service), this error appears: SetUp : System.Runtime.InteropServices.COMException : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-000-000000000046} from the IClassFactory failed due to the following error: 800704a6. TearDown : System.NullReferenceException : Object reference not set to an instance of an object. This error has been a nightmare to debug because it is not consistent