YUIMenu

YUI Menu.

Extends HTMLObject.

Extends SeSSimulatedObject.

Behavior Pattern: YUIMenuBehavior

Action Summary

Action Description
DoFindChild Searches for specific item in the menu.
DoMenu Performs click on the menu item.
DoTitleMenu Clicks menu title item.

Action Detail

DoFindChild(path, separator, pathType)

Searches for specific item in the menu.

Parameters:

Name Type Description
path string Path from the menu root to a leaf item with components delimited by separator parameter.
separator string Separator character.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'index'.

Returns:

HTMLObject: HTMLObject of the found node

DoMenu(path, separator, pathType)

Performs click on the menu item.

Parameters:

Name Type Description
path string Path from the menu root to a leaf item with components delimited by separator parameter.
separator string Separator character.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'index'.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoTitleMenu(path, separator, pathType)

Clicks menu title item. Only 1 menu level currently supported.

Parameters:

Name Type Description
path string Path from the menu root to a leaf item with components delimited by separator parameter.
separator string Separator character.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'index'.

Returns:

boolean: 'true' if success, 'false' otherwise.