<
div
class
=
"rtBot"
>
<
span
class
=
"rtSp"
></
span
>
<
span
class
=
"rtPlus"
></
span
>
<
img
src
=
""
longdesc
=
"Region"
alt
=
""
class
=
"rtImg"
>
<
span
class
=
"rtIn"
>TS Test Region
<
span
class
=
"tvContext"
name
=
"contextMenu"
style
=
"display:none;"
id
=
"thisSpan_randomId"
>
<
a
href
=
'javascript:addRegionAccess("","747383be52bd4960b0b12331ed690c26", "TS%20Test%20Region");'
innerhtml
=
"Add Region Access"
class
=
"addRegion"
>Add Region Access</
a
>
</
span
>
</
span
>
</
div
>
'10/8/2012 1:23:43 PM' - Using .Net Runtime version: '4.0.30319.17929' for tests execution.'10/8/2012 1:23:43 PM' - Starting execution....'10/8/2012 1:23:43 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True'10/8/2012 1:23:44 PM' - Failure detected during execution. Details:------------------------------------------------------------'10/8/2012 1:23:44 PM' - ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_00e508d3-d197-47d4-88ea-7150208bf338',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')InnerException: System.NullReferenceException: Object reference not set to an instance of an object. at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) ---> System.NullReferenceException: Object reference not set to an instance of an object. at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) --- End of inner exception stack trace --- at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady) at ArtOfTest.WebAii.Core.Browser.IsReady() at ArtOfTest.WebAii.Core.Browser.WaitUntilReady() at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)------------------------------------------------------------'10/8/2012 1:23:45 PM' - Test completed!
[CodedStep(@
"Clicks one of the Search tabs"
)]
public
void
Click_Product_Search_Tab(
string
productNavLinkToClick )
{
HtmlFindExpression expression =
new
HtmlFindExpression(
"tagname=a"
,
"id=?searchLink"
,
"textcontent="
+ productNavLinkToClick );
Element eLink =
new
Element( expression, Find, ActiveBrowser );
eLink.Wait.ForExists( 30000 );
HtmlAnchor hotelNavLink =
new
HtmlAnchor( eLink );
if
( hotelNavLink !=
null
)
hotelNavLink.Click();
Assert.IsNull( hotelNavLink );
}