Skip to content

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

Searches for specific item in the menu.

SeS('SomeYUIMenu').DoFindChild(path, separator, pathType)

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. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'index'.

Returns:

HTMLObject: HTMLObject of the found node

DoMenu

Performs click on the menu item.

SeS('SomeYUIMenu').DoMenu(path, separator, pathType)

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. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'index'.

Returns:

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

DoTitleMenu

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

SeS('SomeYUIMenu').DoTitleMenu(path, separator, pathType)

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. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'index'.

Returns:

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