[Test]
public
void
SampleWebAiiTest()
{
// Launch a browser instance
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
// The active browser
ActiveBrowser.NavigateTo(
"http://localhost/HTMLTestpage.htm"
);
HtmlMainScreen homepage =
new
HtmlMainScreen(ActiveBrowser.Find);
homepage.TextField1.Text =
"Automation Test"
;
homepage.OkButton.Click();
Assert.AreEqual(
"Automation Test"
, homepage.Div1.InnerText,
"Elements are not equal"
);
}
HtmlMainScreen attached.
The test pass but I get the following exception. I am runing Visual Studio 2010 on Windows 7 (64bit) and using jetbrains resharper 7.0 to run the unit test
System.Threading.ThreadAbortException
Thread was being aborted.
at
ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListenerThreadEntry() at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()