how do you set the apartment state in the NUnit GUI runner? I'm trying to run a single NUnit test with WatiN and I'm getting the message.
MyNamespace.LoginTests.CanLogin:
System.Threading.ThreadStateException : The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer.
...
Any tricks in getting WatiN to run on Win7/IE8?
My code:
browser = new IE();
browser.GoTo("http://testserver");
browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");
The third line never really runs and I get an error back:
System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception f...
In thread WatiN in Visual Studio 2008 - second test method fails
there is a good solution with IEStaticInstanceHelper (original answer Reusing an IE instance in VS test, sources), but when ClassCleanup fires it fails on AttachToIE. As result IEXPLORAR remain running.
What is the problem?
Of course it is possible to just kill the proce...
I am using HTTPWatch automation API to launch a new Firefox instance like that:
HttpWatch.Controller ct = new HttpWatch.Controller();
HttpWatch.Plugin plugin = ct.FireFox.New("");
plugin.GotoURL("http://www.google.com");
These codes could start a Firefox browser successfully. Then I want to control the browser in WatiN 2.0:
FireFox f...
I am performing actions on the page during WatiN tests. What is the neatest method for asserting certain elements are where they should be by evaluating the HTML source? I am scraping the source but looking for a clean way to navigate the tags pulled back.
UPDATE: Right now I am thinking about grabbing certain elements within HTML sourc...
I'm using Watin to open IE and make some work automaticcaly.
My question is: can I embeded this into a WPF application (so Watin will not open IE as standalone windows, but as part of my application)?
...
I am performance integration testing where I fire up the ASPX pages using WatiN and fill the fields and insert into the database. There are couple of problems that I am facing.
1) Should I use a completely separate database for integration testing? I already gave db_test and db_dev. db_test is for unit testing and is cleared after each...
I'm using WatiN to write an automated bot for harvesting information. I was just wondering, is it possible to check if an element on the page exists?
...
I want to close the child window which is of "Browser" type. Have a look at the below code.
WatiN.Core.Browser openBrowser = BrowserType.getBrowserObject().attachChildBrowser(document_name + Constants.open_document_title);
I want to close the "openBrowser". Close()(available in WatiN) can only be used for the type "IE" of "Firefox" o...
I try to run some javascript unit tests (in addition to my Nunit tests) on a project in TeamCity, by using Watin. I am not very familiar with either Watin or Teamciy, so forgive me if I have missed some vital information along the way.
Anyway: When I run the test in Visual Studio 2008, it succeeds, but when I try to run it on teamcity i...
I am using WatiN (2.0.10.928) with C# and Visual Studio 2008 to test a SSL secured website that requires a certificate. When you navigate to the homepage a "Choose a digital certificate" dialog is displayed and requires that you select a valid certificate and click the 'OK' button.
I'm looking for a way to automate the certificate selec...
IE.AttachToIE(Find.ByUrl("my url") seems to be non-existent in the WatiN 2.0 RC candidate. It does exist in 1.3. How can I fix it in 2.0?
...
Hi,
I am using Watin mostly to automate thing I do by hand. Sometimes, I need to change proxy. To do this, I have to set up IE to use a local proxy all the time (listens locally and forwards to a remote porxy), and then by hand change the settings of that program each time I need to use another proxy.
This is not an elegant solution! ...
I have a, what seems to be, rather common scenario I'm trying to work through.
I have a site that accepts input through two different text fields. If the input is malformed or invalid, I receive a Javascript pop-up notification.
I will not always receive one, but I should in the event of (like I said earlier) malformed data, or when a...
Preface:
If you don't care about the preface, skip down to the section marked "Question."
Hi,
Recently my company has upgraded to the latest version of WatiN for its test automation framework. We upgraded to avoid a problem where interacting with a select list would cause an ACCSES DENIED error. This error seems to be a product of t...
I'm doing an IE automation 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.
I added a registry key to,
HKEY_CURRENT_USER\Software\Microsoft\Win...
Hi,
My WatiN automation for doing file download is working fine when executed in command window normally. But failing with timeout exceptions or fileDownload Dialog not found exception when executed as a scheduled task.
Is it possible to execute WatiN exe (with filedownload dialog handler) as a scheduled task. If NO is there any other...
Is there any way which would allow me to use watin's functionalities from my web browser control? simply i want to use watin with my web browser control i don't want my application to open a new window ,i need it in my web browser control.
...
I what to run may watin tester in silent mode and how I can get Team City to run my tests ?
...
I'm using nunit.exe (v2.5.3, as it happens) for our testers to run UI tests of our web site, using WatiN.
The regression test suite is up to around 100 tests. While the test suite is running, the test web site could go down for maintenance. It would be more efficient in those circumstances if the test suite would stop altogether, rathe...