Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
duplicate menu names on different menu levels
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I have a menu structure which is giving me some problems.

The menu is 4 layers deep. I am trying to navigate to the 4th layer in the menu. Normally I navigate the menu by identifying the innertext of the menu item. However in this particular scenario I cannot correctly identify the 3rd level menu item as there is also a menu item on the 2nd level which has identical properties.

the menu is as follows:

ordering->picking->special->picking

I can successfull get to click on the menu option special, but after that i get an error saying: The "Dynarch_menu" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object. (presumably now as there are 2 picking menu options on the screen)

the code for the menu is as follows:

Code:
Public function DynarchMenuOption(Dynarch_object, menu_item)

    Dim itemsfound
    itemsfound = split(menu_item,":")
    
    For itemidx = 0 to ubound(itemsfound)
        itemnow = itemsfound(itemidx)
        If  itemidx  = 0 Then
            htmltag = "DIV"
            else
            htmltag = "TD"
        End If
        Dynarch_object.SetTOProperty "innertext",itemnow
        Dynarch_object.SetTOProperty "html tag",htmltag        
        Dynarch_object.Click
    Next    
End Function

I was calling the function as follows:

Code:
DynarchMenuOption Browser("Browser").Page("Page").WebElement("Dynarch_menu"), "ordering:picking:special:picking"

What is the easiest way to click on this 4th layer menu option ?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Try .childobjects() on the third menu(special) and click.
Please let us know if you have found something else

Regards,
Ravi
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,344 03-02-2020, 09:33 PM
Last Post: Swishy70
  Select Menu items shilpaS 1 7,071 06-19-2015, 01:23 AM
Last Post: supputuri
  Objects are being recognized as "Windows for Menu item list (Browser-firefox, UFT 12) akhandesh 0 2,528 05-27-2015, 06:29 PM
Last Post: akhandesh
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,332 05-15-2014, 05:30 PM
Last Post: vishnu1067
  Comparing two excel Sheets whose columns names vary Divya Roopa 2 8,632 03-26-2014, 07:20 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)