Developer

<menu>

The <menu> element is contained by <menu-select> and <menu-expect>. The <menu> element identifies the menu to be acted on by the containing element. When contained by a <menu-expect> this element specifies what type of verification is to be performed. The <menu> element will contain one or more <item> elements identifying the menu item to be selected or verified. The <menu> element may also contain one or more <separator> elements when contained by a <menu-expect> element. The <separator> element will indicate the expected position of a menu separator.

Structure

Contains:
  • Text - The name of the menu to be acted on by this element.
  • <item>
  • <separator>
Contained By:
  • <menu-select>
  • <menu-expect>
Table 52: Attributes
Name Description Data Type Default Value Required
type This attribute is only used when the <menu> element is contained by a <menu-expect> element. The type attribute specifies what is to be verified within the named menu. Valid options for this attribute include:
  • exact - The <item> and <separator> elements contained by the <menu> element must match exactly with the contents of the menu.
  • sub-set - The <item> and <separator> elements contained by the <menu> element must exist within the menu, but others may also be present.
  • no separators - The <item> elements contained by the <menu> element must exist within the menu. Any separators within the menu are ignored and the <menu> element should contain no <separator> elements.
string exact No - valid only when <menu> is contained by a <menu-expect>