prashant_sankle
12 years agoNew Contributor
Unable to click subitems of UltraMainMenu
Hi,
I'm working on .net Application and in one scenario I want to click on the Subitem of given Menu Item. I'm able to perform following
objMainFrame.UltraMainMenu.Click("Window| Close All") to select "Close All" sub item.But when i'm trying to click on "Test1" or "Test2" it doesn't perform the action."Close All" is default subItem of MenuItem "Window"."Test1" , "Test2" subitems are the window name which gets added or deleted to the item list of "Window" at run time when a new window is open or closed.Also when I check the count of the Subitems of "Window" it returned 2. It considers "Cose All " as 1 item and "Test1" and "Test2" as second item. How do I click on "Test1" and "Test2".
For , objMainFrame.UltraMainMenu.Click("Window|[0]").. clicks Close All
objMainFrame.UltraMainMenu.Click("Window|[1]").. clicks Test2 . How do I click on Test1?
E.g: Window
Close All
1 Test1
2 Testt2
Please find attached screenshot.
Thanks,
Prashant
I'm working on .net Application and in one scenario I want to click on the Subitem of given Menu Item. I'm able to perform following
objMainFrame.UltraMainMenu.Click("Window| Close All") to select "Close All" sub item.But when i'm trying to click on "Test1" or "Test2" it doesn't perform the action."Close All" is default subItem of MenuItem "Window"."Test1" , "Test2" subitems are the window name which gets added or deleted to the item list of "Window" at run time when a new window is open or closed.Also when I check the count of the Subitems of "Window" it returned 2. It considers "Cose All " as 1 item and "Test1" and "Test2" as second item. How do I click on "Test1" and "Test2".
For , objMainFrame.UltraMainMenu.Click("Window|[0]").. clicks Close All
objMainFrame.UltraMainMenu.Click("Window|[1]").. clicks Test2 . How do I click on Test1?
E.g: Window
Close All
1 Test1
2 Testt2
Please find attached screenshot.
Thanks,
Prashant