Issue with WebMenu and UFT
Question ID: 108551
0
0

UFT is recognizing toolbar menu options as "WebMenu". i.e. Browser("").Page("").WebMenu("ToolbarMenu") . Browser("").Page("CHIPSP").WebMenu("ToolbarMenu").GetROProperty("top level items") gives me "Home;Payments Inquiry;Unresolved Payments;Position Inquiry;Payments on Demand;Network Control;Reports;SignOut" . There are 9 items in that WebMenu object. Each one of them is a drop-down menu in the application. But UFT is recognizing as a one unit. I want to select one of the item. Let say I want to click on "Network Control". How should I write it? I looked for some help in the web. Could not find what I was looking for.

Marked as spam
Posted by (Questions: 227, Answers: 22)
Asked on July 27, 2018 2:26 am
488 views
Answers (1)
0
Private answer

I think what you are looking for is the Select method with a WebMenu object. It uses a string value to select a particular value, such as:

Browser('''').Page('''').WebMenu(''ToolbarMenu'').Select ''Network Control''

You could also try using an idex value of the item number in the menu. The items would start at 1 at the very top and progress sequentially down the menu items. So, if you wanted to select the second item in the menu, you could use the follwoing:

Browser('''').Page('''').WebMenu(''ToolbarMenu'').Select ''#2''

If those two methods don't work, do you know if you are able to choose menu items in your application by shortcut keys (i.e., Alt+F for File or Alt+N for Network Control) or something similar? If so, I have had to use SendKeys to send the keyboard combination in order to select some menu items.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on July 27, 2018 2:28 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top