Search Results for

    Show / Hide Table of Contents

    Class CommandBar

    Defines a wrapper for the core CommandBar control.

    Inheritance
    System.Object
    UnoElementWrapper
    CommandBar
    Inherited Members
    UnoElementWrapper.Element
    UnoElementWrapper.Driver
    UnoElementWrapper.IsEnabled
    UnoElementWrapper.IsVisible
    UnoElementWrapper.FindElement(By)
    UnoElementWrapper.FindElements(By)
    UnoElementWrapper.Click()
    UnoElementWrapper.GetAttribute(String)
    UnoElementWrapper.VerifyElementShown(By)
    UnoElementWrapper.VerifyElementShown(By, Nullable<TimeSpan>)
    UnoElementWrapper.VerifyElementsShown(By)
    UnoElementWrapper.VerifyElementsShown(By, Nullable<TimeSpan>)
    UnoElementWrapper.VerifyElementNotShown(By)
    UnoElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    UnoElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Uno.Elements
    Assembly: Legerity.Uno.dll
    Syntax
    public class CommandBar : UnoElementWrapper

    Constructors

    | Improve this Doc View Source

    CommandBar(IWebElement)

    Initializes a new instance of the CommandBar class.

    Declaration
    public CommandBar(IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The reference.

    | Improve this Doc View Source

    CommandBar(RemoteWebElement)

    Initializes a new instance of the CommandBar class.

    Declaration
    public CommandBar(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The reference.

    Properties

    | Improve this Doc View Source

    MoreButton

    Gets the secondary (more) options button.

    Declaration
    public virtual AppBarButton MoreButton { get; }
    Property Value
    Type Description
    AppBarButton
    | Improve this Doc View Source

    PrimaryButtons

    Gets the collection of primary buttons.

    Declaration
    public virtual IEnumerable<AppBarButton> PrimaryButtons { get; }
    Property Value
    Type Description
    IEnumerable<AppBarButton>
    | Improve this Doc View Source

    SecondaryButtons

    Gets the collection of secondary buttons.

    Note, this property will only return a result when the secondary buttons are shown in the flyout.

    Declaration
    public virtual IEnumerable<AppBarButton> SecondaryButtons { get; }
    Property Value
    Type Description
    IEnumerable<AppBarButton>

    Methods

    | Improve this Doc View Source

    ClickPrimaryButton(String)

    Clicks a primary button in the command bar with the specified button name.

    Declaration
    public virtual void ClickPrimaryButton(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the button to click.

    | Improve this Doc View Source

    ClickPrimaryButtonByPartialName(String)

    Clicks a primary button in the command bar with the specified partial button name.

    Declaration
    public virtual void ClickPrimaryButtonByPartialName(string name)
    Parameters
    Type Name Description
    System.String name

    The partial name of the button to click.

    | Improve this Doc View Source

    ClickSecondaryButton(String)

    Clicks a secondary button in the command bar with the specified button name.

    Declaration
    public virtual void ClickSecondaryButton(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the button to click.

    | Improve this Doc View Source

    ClickSecondaryButtonByPartialName(String)

    Clicks a secondary button in the command bar with the specified partial button name.

    Declaration
    public virtual void ClickSecondaryButtonByPartialName(string name)
    Parameters
    Type Name Description
    System.String name

    The partial name of the button to click.

    | Improve this Doc View Source

    OpenSecondaryButtonMenu()

    Opens the menu associated with the secondary button options.

    Declaration
    public virtual void OpenSecondaryButtonMenu()

    Operators

    | Improve this Doc View Source

    Implicit(RemoteWebElement to CommandBar)

    Allows conversion of a to the CommandBar without direct casting.

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

    The .

    Returns
    Type Description
    CommandBar

    The CommandBar.

    Extension Methods

    ElementWrapperExtensions.WaitUntil<TElementWrapper>(TElementWrapper, Func<TElementWrapper, Boolean>, Nullable<TimeSpan>)
    ElementWrapperExtensions.FindWebElementByXamlType(UnoElementWrapper, String)
    ElementWrapperExtensions.FindElementByXamlName(UnoElementWrapper, String)
    ElementWrapperExtensions.FindElementByAutomationId(UnoElementWrapper, String)
    ElementWrapperExtensions.VerifyNameOrAutomationIdEquals(UnoElementWrapper, String)
    ElementWrapperExtensions.VerifyNameOrAutomationIdContains(UnoElementWrapper, String)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps