Все вопросы: [watin]

115 вопросов

похожие теги:
4
голосов
1ответов
1817 просмотров

Watin - problems with page redirects

I'am trying out Watind. I am having problems with a Login page og the applciation, which automatically redirects to the main page (without any user intervention). It looks like WatiN has troubles with this. Wehn I Invoke: IE ie = new IE("http://localhost/MyApp/Login.aspx"); The browser opens, i...

13
голосов
3ответов
5983 просмотров

Hiding Internet Explorer when WatiN is run

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...

0
голосов
1ответов
1077 просмотров

How to disable a .DLL's console output?

I used to use WatiN for my Web Automation project. But, IE looked slow to me. I tried to use WatiN with FF projects, but it seems WatiN with Firefox is not as powerful as WatiN with IE. Before I though this, I researched how to use WatiN in Firefox 3.5. Because WatiN comes with jssh for FF 2.x ...

1
голосов
2ответов
1280 просмотров

Watin testing of FckEditor

I have been working on the integration testing of a webapp using watin. The webapp uses fckeditor as one of the richtext controls. Here is the piece of html of the viewsource of my webapp that includes fckeditor iframe id="ctl00_HeaderMain_txtSafetyNetDescription___Frame" src="/FCKEditor/edito...

2
голосов
2ответов
2045 просмотров

WatiN pressTab doesn't press tab

Has anyone found a means to press tab with watiN in Internet explorer?

3
голосов
1ответов
2916 просмотров

WatiN clear browser cache

It seems the ClearCache method doesn't quite work for IE in WatiN. at least, it doesn't work for things you've cached SINCE you've opened the instance. Any suggestions? I tried using ReOpen, but it errors. It also seems to do the same thing as Browser.Close(); Browser = new IE(); Which is...

1
голосов
2ответов
1000 просмотров

Running WatiN tests with Nunit error?

When I try to run a WatIn test trough the NUnit ide, I get the error message: ConsoleApplication1.Tests.CanBrowseToMicrosoft: System.Threading.ThreadStateException : The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer. I created...

2
голосов
2ответов
4535 просмотров

Regularly invoking an interactive process (WatiN tests) via Task Scheduler

I'm using a suite of WatiN tests driving IE to do some periodic sanity checking for the purposes of monitoring a site. The suite works fine when I invoke it interactively and/or when I configure the task in Task Scheduler to "Run only when the user is logged on". However, when I set it to "Run ...

3
голосов
2ответов
4624 просмотров

Attaching WatiN to Firefox

Using WatiN, Im facing some issues with FireFox FF = new FireFox ("http://www.google.com");, FireFox always crashes at this point and VS report : Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host any idea why this is hap...

0
голосов
2ответов
695 просмотров

How to attach a child window in firefox with parent window in C# code using WatiN

I want to attach a child window with parent window of firefox browser. AttachToIE attaches IE child window to IE parent window. Is there any method in WatiN.Core for firefox? Anybody knows?

73
голосов
3ответов
20144 просмотров

WatiN Error Could not Load Assembly

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 ...

15
голосов
3ответов
28984 просмотров

How do I find the position / location of a window given a hWnd without NativeMethods?

I'm currently working with WatiN, and finding it to be a great web browsing automation tool. However, as of the last release, it's screen capturing functionality seems to be lacking. I've come up with a workable solution for capturing screenshots from the screen (independently generating code s...

3
голосов
5ответов
1795 просмотров

Access full page source in WatiN

I am looking for a way to pass my webpages through a DTD validator as part of my WatiN tests, but I haven't found a clean way to access the raw HTML yet. Is there a built-in way to do it? I think I could access the property IE.InternetExplorer and QueryInterface for the IPersistStreamInit interf...

1
голосов
1ответов
2040 просмотров

Getting System.Runtime.InteropServices.COMException while running nightly builds

Currently I have 2 virtual test servers(win2003). One is on which websites are deployed and other one has all the tests. I have setup all nightly build using cc.net. When ever I run tests on nightly builds. Some of the tests fail saying 1. System.Runtime.InteropServices.COMException : The RPC se...

0
голосов
2ответов
927 просмотров

Is it possible to run a quartz.net job on the UI thread?

I'm using Watin for browser testing, which has to run on the UI thread. I want to schedule a job using Quartz.NET but can't work out a way to run it on the UI thread (using a WPF application) Any ideas?

0
голосов
1ответов
357 просмотров

How do I drive pagination for an infragistics grid in a webpage via watin?

Using IE8's developer mode, I see that select lists are implemented using partial postbacks. Unfortunately, the select list itself doesn't appear addressable. It has no ID. Here is how it looks in IE8: <TD id=ctl00$mainContentPlaceHolder$DashboardTabContainer$Documents$DocumentsGrid_pager cla...

0
голосов
2ответов
1458 просмотров

How to enter text in AJAX HTML Editor using watin

I could not figure out how to enter text into HTML Editor using Watin. I tried //ie.TextField(Find.ById("htmlDetail_ctl06_ctl04")).TypeText("ABCD"); But got error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. Can you give som...

11
голосов
5ответов
11475 просмотров

Silverlight testing: Watin vs Selenium comparison

I was wondering how well these web test frameworks (Watin and Selenium) work for Silverlight UI testing. Have anyone tried it on a project? Are Watin or Selenium well suited for Silverlight?.

0
голосов
1ответов
799 просмотров

Why does WatiN timeout when it is indirectly called by a unit test?

I'm using WatiN to run IE inside a VB .NET function: Dim ie8 As New IE("[some website]") Login(ie8) Logout(ie8) It runs perfectly fine when I call the function from a console application. However, when I call the function from a unit test, then WatiN throws a TimeOut exception on the Dim stat...

4
голосов
1ответов
1079 просмотров

with Watin how do you stop the browser from loading images?

Just trying to see if I can stop Watin / IE from loading images so the whole thing goes a lot faster?

1
голосов
1ответов
607 просмотров

Using Watin but Want to enter CaptCha manually!

I'm using Using Watin with my project..I want all the things to be automated and Watin is doing that well. But I need the captha entry part to be done! I have to do this manually! Is there any way to popup an input box to get the Captcha Value and Watin will continue then??? Any help would be ap...

12
голосов
3ответов
1893 просмотров

WatiN Dispose() is really slow

My WatiN tests have suddenly gotten REALLY slow when I dispose the Internet Explorer object. Here's my setup... * Windows 7 (Evaluation Build 7100) * Internet Explorer 8 (Version 8.0.7100.0) * WatiN (Version 2.0.10.928) This is strange because the tests were working fine a week or so ago. I t...

1
голосов
1ответов
404 просмотров

WatiN Test Project Best Practices

After building up and running lots of WatiN tests, what are some good ways to organize the tests? If I was asked "Do we have a test that does X, then Y?" How would I look that up? Would it be with all tests surrounding X or Y? It seems after getting lots of tests in here, organization becomes a ...

0
голосов
1ответов
619 просмотров

Watin IENotFoundException

I wrote a short bit of WatiN code (see below). it works great in Dev. Just wonderful. When I deploy it to the production server it opens IE, then fails with an IENotFoundException. .NET 3.5 Server 2008 IE 7.0.6 I'm at the point where I'm getting ready to download the source and debug, but I'...

4
голосов
2ответов
2313 просмотров

How to check if PDF was successfully opened in the browser using WatiN?

I am using WatiN library to do a quick smoke test on a web site after deployment. Among other things, I want to make sure that when I click on a specific link on my page, a PDF is opened in the browser. Clicking the link is easy, but how can I detect if Acrobat Reader was successfully opened in t...

0
голосов
1ответов
435 просмотров

WatiN LogonDialogHandler & Windows 2000

I'm having trouble logging into a secure site with a WatiN LogonDialogHandler running on a IE6 / Windows 2000 machine. It doesn't fill in the userid/password for the proxy site, but works fine on a IE7 / Windows XP machine. Has anyone ever had/solved this problem? I found the same question on ...

7
голосов
2ответов
3538 просмотров

WATIN tests failing with TimeoutException when run from CruiseControl

We have a collection of WATIN tests we are using CruiseControl to run every hour. All the tests pass on our local machine - but when they are run using CruiseControl we get sporadic failures. We are using CruiseControl using the command line. We are not using the CruiseControl service. We are us...

3
голосов
2ответов
866 просмотров

ASP.NET MVC - Testing Page to Model Binding

I have unit tests covering my model binders. I create a ModelBindingContext and populate the ValueProviderDictionary with my test values. I feel confident that once my controller gets the model, everything is covered with testing and the right things are happening. I also feel confident that i...

0
голосов
3ответов
2225 просмотров

WatiN: Print Dialog

I have a screen that pops up on load with a print dialog using javascript. I've just started using WatiN to test my application. This screen is the last step of the test. What happens is sometimes WatiN closes IE before the dialog appears, sometimes it doesn't and the window hangs around. I h...

3
голосов
3ответов
2613 просмотров

Improving performance and speed of Watin

We're using Watin for acceptance tests and we find it gets mighty slow once we have Web pages that are more than 100K of HTML source. I've a feeling that some of the speed issues come from iterating over HTML tables. Some of our tables have 50 - 60 rows, each with 5 - 10 columns, and this makes...