Last week I worked on some integration tests in Selenium. Today I’m redoing the same test in WatiN to get a feel for both tools.
var js = "tinyMCE.get('tinyTextAreaId').setContent('some html');";
var s = Document.Eval(js);
This would work just as good with Selenium and it has one advantage over setting the text areas. It executes the eventual cleanup rules in TinyMCE before it sets the text.
But I couldn’t find any similar for NUnit. Instead I changed how SharpDevelop launches it’s tests. Click; Tools / Options / Tools / Unit Tests and deselect Run tests on separate thread. Run the tests again.
And I got the following error:
System.InvalidOperationException : Process has exited, so the requested information is not available.
I tried to disable Protected Mode in Internet Explorer and the tests ran fine.