Trouble testing with a RadMenu

11 posts, 0 answers
  1. Dennis Minard
    Dennis Minard avatar
    8 posts
    Member since:
    May 2010

    Posted 04 Jun 2010 Link to this post

    I'm doing a straight function test on a page with a RadMenu with 3 list items.  During the test, clicking on the menu and selecting a list item (or hovering over the menu and selecting an item once it opens) records a step in the test, but when I execute the test, this step fails.  The error I receive is: RadMenuItem: item 'Help' action -> 'Navigate' to 'Support.aspx'   "Unhandled exception thrown during automation step execution".  According to the exception log, it thinks the menu is hidden (see exception log below).  I increased the timeout from 5000 to 50000 with no effect.

    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 ---
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 07 Jun 2010 Link to this post

    Hi Dennis,

    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.
  3. Jason
    Jason avatar
    1 posts
    Member since:
    Nov 2010

    Posted 10 Mar 2011 Link to this post

    Konstantin,
    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?
  4. Jason
    Jason avatar
    1 posts
    Member since:
    Nov 2010

    Posted 10 Mar 2011 Link to this post

    OK maybe I should have waited 5 minutes.
    All I had to do was add an x:name to each of my menu elements.
  5. Sagar
    Sagar avatar
    2 posts
    Member since:
    Jun 2013

    Posted 03 Jul 2013 Link to this post

    Hi All,

    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.
  6. Sagar
    Sagar avatar
    2 posts
    Member since:
    Jun 2013

    Posted 03 Jul 2013 Link to this post

    Got the Solution,

    ignore earlier post..thnx
  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 03 Jul 2013 Link to this post

    Hi Sagar,

    Glad yo hear you've found a solution.

    Should you have any additional questions please do not hesitate to ask us. 

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  8. Zeeshan
    Zeeshan avatar
    19 posts
    Member since:
    Jun 2013

    Posted 14 Jul 2013 Link to this post

    This testing can be do in 2010 version
  9. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 16 Jul 2013 Link to this post

    Hi Zeeshan,

    Thank you for sharing your knowledge with us.

    Let us know if you need further assistance.

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  10. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 29 Aug 2013 Link to this post

    Hi,

    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.
  11. Rodney
    Admin
    Rodney avatar
    6 posts

    Posted 03 Sep 2013 Link to this post

    Hello Karl,

    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

    Regards,
    Rodney
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!