Table of Contents

Interface IMenu

A menu control in a Web page or application.

Inherited Members
IWebElement.DoubleClick()
IWebElement.DoubleClick(WebDoubleClickArgs)
IWebElement.HoverTap()
IWebElement.HoverTap(Location)
IWebElement.FireEvent(EventInfo)
IWebElement.LongPress()
IWebElement.LongPress(WebLongPressArgs)
IWebElement.Pan(long, long)
IWebElement.Pan(WebPanArgs)
IWebElement.Pinch(double)
IWebElement.Pinch(WebPinchArgs)
IWebElement.Swipe(SwipeDirection)
IWebElement.Swipe(WebSwipeArgs)
IWebElement.XPath
IWebElement.AccessibilityName
IWebElement.CSSSelector
IWebElement.Role
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IWebTestObject.GetAttribute(string)
IWebTestObject.GetComputedStyle(string)
IWebTestObject.Describe<TChild>(IDescription)
IWebTestObject.Describe<TChild>(XPathDescription)
IWebTestObject.Describe<TChild>(CSSDescription)
IWebTestObject.ClassName
IWebTestObject.Id
IWebTestObject.TagName
IWebTestObject.InnerHTML
IWebTestObject.OuterHTML
IWebTestObject.InnerText
IWebTestObject.OuterText
IWebTestObject.Name
IWebTestObject.Title
IWebTestObject.Attributes
IWebTestObject.Styles
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportsNativeObject.NativeObject
IVisibleProvider.IsVisible
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public interface IMenu : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop

Properties

TopLevelMenuItems

An array of strings containing the top level menu items in this menu.

Declaration
ReadOnlyCollection<string> TopLevelMenuItems { get; }
Property Value
Type Description
ReadOnlyCollection<string>

Methods

BuildMenuPath(params object[])

Returns the path constructed from the path parts.

Declaration
string BuildMenuPath(params object[] menuPathParts)
Parameters
Type Name Description
object[] menuPathParts

The tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based).

Returns
Type Description
string

Select(params object[])

Selects the menu item according to the specified path.

Declaration
void Select(params object[] menuPathParts)
Parameters
Type Name Description
object[] menuPathParts

The tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based).

Select(string)

Selects the menu item according to the specified path.

Declaration
void Select(string menuPath)
Parameters
Type Name Description
string menuPath

The path to the menu item to select, separated by semicolons, e.g. "item1;item2" or "#1;#2"

The menu items can be specified by name or index numbers (0-based).

Tip: You can use the BuildMenuPath method to build the menu path string that can then be used as the menuPath argument for this method.

Extension Methods

TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)