I see the following error:
Test method TracerStuff.TracerStuff.WebTest1UnitTest.SampleWebAiiTest threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.
Any idea's?
John
Test method TracerStuff.TracerStuff.WebTest1UnitTest.SampleWebAiiTest threw exception:
System.NullReferenceException: Object reference not set to an instance of an object.
<TestMethod()> _
Public
Sub
SampleWebAiiTest()
' Launch a browser instance
Manager.LaunchNewBrowser(BrowserType.InternetExplorer)
' The active browser
ActiveBrowser.NavigateTo(
"http://www.google.com"
)
' Find the google search box and set it to "ArtOfTest";
Find.ByName(Of HtmlInputText)(
"q"
).Text =
"ArtOfTest"
' Click the Search button
Find.ByName(Of HtmlInputSubmit)(
"btnG"
).Click()
' Validate the search contain the 'ArtOfTest' text
Assert.IsTrue(ActiveBrowser.ContainsText(
"ArtOfTest"
))
End
Sub
Any idea's?
John