watin

Watin Help - Fileupload under VISTA

Hi, I'm trying to upload a file using Watin and C#. Under Windows XP, Watin opens the Filebrowse window and selects the file properly, but under Vista the Browser window pops up but no file is selected. Could you help getting this to work under Vista? Thank you. ...

Watin - Watin.Core.Exceptions.ElementNotFoundException

I have code that runs that gives me the error : Could not find a 'INPUT (text password textarea hidden) or TEXTAREA' tag containing attribute name with value ________ (It's testing a website) It says it can't find a What reason could it be that it can't find it? It finds others without an issue on other pages, but this page for s...

IE Popup is blocked in WATIN (Help Required)

Hi , I have a page in which i have a link button.When i click on the link button a popup will appear,but the same if i do through "watin" , the popup is blocked and is showing the message "popup is blocked.Press "Ctrl" key to to allow the popup" is coming. Through watin automation i am not able to get the pop up on click of a link but...

WatiN error: cannot load

I am working on a new test project with watiN, but always get this error, Could not load file or assembly 'WatiN.Core, Version=2.0.3.913, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. An attempt was made to load a program with an incorrect format. Did I miss something? thanks. ...

Call Page Javascript Methods from WatiN??

Hi All, I am just experimenting WatiN unit testing tool for Asp.Net application.. And my pages are designed with huge & complex list of own custom controls .. And its very difficult for us to identify the elements within these control (for ex: to select the row in our custom grid based on some business rules is very tough).. so av...

How to use regular expression in WatiN

Hi I'm working on WatiN automation tool. I'm having problem in regular expression. I've situation where i have to enter some text and click on a button in the popup window. I'm using AttachToIE method and URL attribute("http://192.168.25.10:215/admin/SelectUsers.aspx?Type=FeedbackID=ef5ad7ef5490-4656-9669-32464aeba7cd") of the popup to...

Using WatiN with Visual Studio 2005

Hi I'm using WatiN in Visual Studio 2005. I want to compare the text on the web page using watin, how to do this? Assert.Istrue method does not work it gives an error. or am i missing the using directive for using the Assert method? please suggest solution and let me know the using directive that supports assert method. ...

Timeout problem running WatiN tests as part of TFS build

I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. It is failing when just trying to load a page with the following exception: WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer busy. I've set the test timeout to 3 minutes which should be plenty...

Threading issue with running WatiN tests under VSTestHost

I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. WatiN is firing an exception: System.Threading.ThreadStateException: The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer. The test runner, VSTe...

How to turn off popup blocker through code in Watin?

I am facing trouble in turning the popup blocker off through watin code. Could anyone please help me in knowing how to turn off the popup blocker of IE through watin? Is there any way to turn off the popup blocker of tool bars (like google, yahoo or msn) if any of them are installed in IE? Thanks for your help in advance. ...

Out of memory exception in watin !!!

Hi, I am using Console.Error.WriteLine() capture a html file which has the details of where the error has occured in the cleanup method.Now there is a large number of testcases which will run sequentialy and since i am using Console.Error.WriteLine() the error is getting stored in memory :(. After a point it is throwing out of memory e...

Watin: Handling Security Alert Pop Up

HI , Am automating a website, when tried to login its dispalying one security alert pop up. Wanted to click "Yes" of that pop up,Can anyone give the solution for this. ...

InteropServices.COMException when running WatiN tests

Hi all, When I run WatiN tests on our build server they all throw this InteropServices.COMException: MyTestClassName.MyTestMethodName: System.Runtime.InteropServices.COMException : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 8000400...

Unit testing the MS AJAX Toolkit HTML editor

Is it possible to unit test the MS AJAX Control Toolkit's HTML Editor? I've tried Watin, WebAii and Selenium without any success... Watin I can find the textbox related to the control but I get an exception trying to access it: using (Browser ie = new IE()) { ie.GoTo(testUri); Assert.IsTrue(ie.ContainsText("Expected text")); ...

Timeout while Internet Explorer busy

Hi I'm using WatiN automation tool. I've a popup window in which i need to enter values in somefields and click on submit button upon which the value is inserted in the main page. I'm able to insert the value into tht fields and click on the submit button but, after this the execution stops and i get the error "Timeout while Internet Ex...

Handling popup whose value in the URL changes

I'm using WatiN testing tool. How to handle the popup whose value in the URL changes each time the popup appears. In the below URL http://localhost/admin/ILT/SessionsPick.aspx?Pick_Sessions=1f37d165-c64b-4371-9060-9ebed89605eb&opener=ILT_NewTraining.aspx&TableId=undefined&TrainingId=undefined in this URL the value of Pick_s...

Access is denied error

Hi I'm using WatiN testing tool using Visual studio 2005. When i'm trying to select a value from the list box i'm getting access denied error. plz suggest some solution. ...

can i accept inputs from an excel sheet using watin

HI I'm testing a web application using watin. I need to pass multiple inputs to the application for doing this each time i need to change inputs in the code. So is it possible in watin to accept inputs from excel file. ...

Programmatically add trusted sites to Internet Explorer

I'm doing an IE automation project using WatiN. When a file to be downloaded is clicked, I get the following in the Internet Explorer Information bar: To help protect your security, Internet Explorer has blocked this site from downloading files to you computer. In order to download the report, I can manually add the site to...

Uploading a file in a popup window

Hi I'm using WatiN automation tool. I've a scenario where i need to click on a button when i do so a popup appears now i've to upload a file in the popup. I used Fileupload method but it is not working the window where the file is present appears and closes immediately without uploading the file. please suggest some solution. below is t...