Search Results for

    Show / Hide Table of Contents

    Class MenuBar

    Defines a wrapper for the WinUI UWP MenuBar control.

    Inheritance
    System.Object
    WindowsElementWrapper
    MenuBar
    Inherited Members
    WindowsElementWrapper.Driver
    WindowsElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    WindowsElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Windows.Elements.WinUI
    Assembly: Legerity.WinUI.dll
    Syntax
    public class MenuBar : WindowsElementWrapper

    Constructors

    | Improve this Doc View Source

    MenuBar(WindowsElement)

    Initializes a new instance of the MenuBar class.

    Declaration
    public MenuBar(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    MenuItems

    Gets the UI components associated with the menu items.

    Declaration
    public virtual IEnumerable<MenuBarItem> MenuItems { get; }
    Property Value
    Type Description
    IEnumerable<MenuBarItem>

    Methods

    | Improve this Doc View Source

    ClickOption(String)

    Clicks on a child menu option with the specified item name.

    Declaration
    public virtual MenuBarItem ClickOption(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the item to click.

    Returns
    Type Description
    MenuBarItem

    The clicked MenuBarItem.

    | Improve this Doc View Source

    ClickOptionByPartialName(String)

    Clicks on a child menu option with the specified partial item name.

    Declaration
    public virtual MenuBarItem ClickOptionByPartialName(string name)
    Parameters
    Type Name Description
    System.String name

    The partial name of the item to click.

    Returns
    Type Description
    MenuBarItem

    The clicked MenuBarItem.

    Operators

    | Improve this Doc View Source

    Implicit(AppiumWebElement to MenuBar)

    Allows conversion of a to the MenuBar without direct casting.

    Declaration
    public static implicit operator MenuBar(AppiumWebElement element)
    Parameters
    Type Name Description
    AppiumWebElement element

    The .

    Returns
    Type Description
    MenuBar

    The MenuBar.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to MenuBar)

    Allows conversion of a to the MenuBar without direct casting.

    Declaration
    public static implicit operator MenuBar(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    MenuBar

    The MenuBar.

    | Improve this Doc View Source

    Implicit(WindowsElement to MenuBar)

    Allows conversion of a to the MenuBar without direct casting.

    Declaration
    public static implicit operator MenuBar(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    MenuBar

    The MenuBar.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps