I just started trying out WatiN as part of my test platform for web projects. To facilitate the setup of tests, as well as to provide some “manual” intervention, I would like to set the parameter so that the browser window remains open when the test is completed. I am using a simple quick start with the following code ...
public void Should_start_google()
{
using (var browser = new IE("google.com"))
{
browser.TextField(Find.ByName("q")).TypeText("Hello WatiN");
browser.Button(Find.ByName("btnG")).Click();
}
}
It works fine, however, when it shuts down the browser with the test. Is there a way to open a browser window? I think this will be useful for developing my tests.
Thanks Justin
source
share