watin

WatiN or Selenium? [closed]

折月煮酒 提交于 2019-11-27 10:04:34
I'm going to start coding some automated tests of our presentation soon. It seems that everyone recommends WatiN and Selenium . Which do you prefer for automated testing of ASP.NET web forms? Which of these products work better for you? As a side note, I noticed that WatiN 2.0 has been in CTP since March 2008, is that something to be concerned about? Just want to say that I'm currently working hard on a beta release of WatiN 2.0 somewhere in Q1 of 2009. It will be a major upgrade to the current CTP 2.0 versions and will basically give you the same functionality to automate FireFox and IE as

How to test file download with Watin / IE9?

老子叫甜甜 提交于 2019-11-27 08:08:06
I'm trying to test file download with Watin 2.1.0 against IE9. I used the suggested code from the accepted answer to the question Downloading a file with Watin in IE9 , like this: var downloadHandler = new FileDownloadHandler(fname); WebBrowser.Current.AddDialogHandler(downloadHandler); link.ClickNoWait(); downloadHandler.WaitUntilFileDownloadDialogIsHandled(15); downloadHandler.WaitUntilDownloadCompleted(200); However, the downloadHandler.WaitUntilFileDownloadDialogIsHandled(15) call times out. What should I do? IE9 no longer uses a dialog window for saving files. Instead, it uses the

Downloading a file with Watin in IE9

我的未来我决定 提交于 2019-11-27 04:34:41
问题 I'm having an issue with automating the process of downloading a file from a website. The website has a Java button, that when clicked, triggers the download of an Excel file. I'm using the most recent build of Watin (v2.1). I've managed to get Watin to log into the website, navigate to the appropriate page, change parameters on the page, and click the button to start the download. However, when the download has completed, the IE9 download box appears, and nothing happens, until Watin

WatiN or Selenium? [closed]

…衆ロ難τιáo~ 提交于 2019-11-27 04:01:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm going to start coding some automated tests of our presentation soon. It seems that everyone recommends WatiN and Selenium. Which

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

心不动则不痛 提交于 2019-11-27 03:52:23
问题 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

Hiding Internet Explorer when WatiN is run

こ雲淡風輕ζ 提交于 2019-11-27 01:54:24
问题 I would like to know how I can prevent Internet Explorer from firing up every time I run my console application which uses WatiN for testing live sites. When I run my console application it fires up internet explore and runs through all the tests that I have created using WatiN. What I want is for my console application to run through these tests using WatiN, but without displaying Internet Explorer starting up and appearing on the screen. I basically want the tests to run without seeing

Programmatically add trusted sites to Internet Explorer

假装没事ソ 提交于 2019-11-27 01:38:18
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 Internet Explorer's list of trusted sites, but I would prefer to check programmatically in .NET to see if the site is trusted and add it to the list if it is not. FYI, I'm currently using IE7. Have a look at this Basically it looks as if all you have to do is create

How do you get WatiN to work on Windows Server 2008 with IE8?

99封情书 提交于 2019-11-27 01:19:42
问题 My problem is that I cannot get a simple WatiN test to reliably work on my development machine which is running Windows Server 2008 and IE8. I have seen a couple of good posts on this, but am still having problems. Here are the posts: MSDN Testing Article Stack Overflow - WatiN Second Method Fails The steps in the first article seemed to help (comment out "::1" in my hosts file, put my site(s) in trusted sites, and making sure my app.config has "STA" and is set to "copy if newer", but they

How to write to Console.Out during execution of an MSTest test

元气小坏坏 提交于 2019-11-27 00:01:04
Context: We have some users reporting issues with a file upload feature in our web application. It only happens occasionally and without any special pattern. We have been trying to figure it out for a long time, adding debug information anywhere we can think it might help, crawling the logs etc, but we have not been able to reproduce or figure it out. Problem: I'm now trying to reproduce this by using MSTest and WatiN to repeat the operation that is supposed to fail a large number of times (several hundreds). Just to have a clue about how far in the loop the test has gotten, I want to print

WatiN Error Could not Load Assembly

假装没事ソ 提交于 2019-11-26 19:32:38
问题 I am getting the following WatiN error: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5 ad44e' or one of its dependencies. The located assembly's manifest definition do es not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db I copied the shDocvw.dll from System32 to the bin directory