'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 ); }I am having difficulty selecting a radmenu text item, which should launch a page.
In the script, I've added waits for the menu to be enabled and populated, prior to trying to access the item.
When using the application, the user would mouseover a menu bar, then scroll down a list to select the desired menu item.
How can this be automated? Mouseclick isn't selecting, directly trying to access the target ref isn't working either.