Exception Log:
ArtOfTest.Common.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.InvalidOperationException: Cannot perform an action on the item while hidden. Please make sure it is visible first!
at Telerik.WebAii.Controls.Html.RadMenuItem.Navigate(Boolean ensureShouldNavigate)
at Telerik.WebAii.Design.Translators.Html.Menu.MenuItemActionDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
10 Answers, 1 is accepted
Thank you for contacting us.
Automating RadMenu you need to make sure the test contains the right actions recorded like hovering over and item then click it's child. I have attached an image to point you to the hover over action in the element menu. Once you record such action the test will open the menu item so that the next click item action can pass.
Please let us know if you need further assistance.
Kind regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I have used the example code from the Telerik RadMenu customization example.
I am to the point where the RadMenu opens on the Hover action and I LeftClick a RadMenu Item nothing happens.
Any suggestions or pointers on what I am doing wrong?
All I had to do was add an x:name to each of my menu elements.
I am also facing the same issue. It is showing the failure reason as 'Cannot perform an action on the item while hidden. Please make sure it is visible first!' while record and play on 'RadMenuItem'.
Note: Wait property is increased upto 10000, sitll not working. :(
Please suggest how to resolve this.
See the attachment.
ignore earlier post..thnx
Glad yo hear you've found a solution.
Should you have any additional questions please do not hesitate to ask us.
Boyan Boev
Telerik
Test Studio Trainings
Thank you for sharing your knowledge with us.
Let us know if you need further assistance.
Boyan Boev
Telerik
Test Studio Trainings
I am using the latest Test Studio in trial mode to evaluate it. Our project is 100% Telerik interface and I am running into immediate issues just getting Radmenu navigation options to execute properly per earlier comments in this thread, which state - figured it out - but never share.
We are binding to a RadMenu as follows
RadMenu1.DataSource = dt
RadMenu1.DataTextField = "Screen Title"
RadMenu1.DataValueField = "ScreenPkey"
RadMenu1.DataFieldID = "ScreenPkey"
RadMenu1.DataFieldParentID = "ParentScreenID"
RadMenu1.DataNavigateUrlField = "FileName"
RadMenu1.DataBind()
What do we need to do in order to record a menu click. Thanks.
You need to use the hover-over highlighting feature to properly record RadMenu navigation. Here is a short video of what it looks like to enable hover-over highlighting and choose the hover mouse action.
Here is the mouse hover feature explained in our documentation.
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/knowledge-base/test-automation/invoke-mouse-hover.aspx
Rodney
Telerik
Test Studio Trainings