UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

34 lines (33 loc) 1.17 kB
import { ElementArrayFinder, ElementFinder } from "protractor"; import { Atom } from "../../atom"; import { ButtonAtom } from "../button/button.atom"; import { MenuPopupAtom } from "../menu-popup/menu-popup.atom"; export declare class SorterAtom extends Atom { static CSS_SELECTOR: string; menuPopup: MenuPopupAtom; click(): Promise<void>; /** * Toggle sorter and select a new item from the options. */ select(title: string): Promise<void>; getItemByIndex(index: number): ElementFinder; getNumberOfItems(): Promise<number>; getItemText(idx: number): Promise<string>; clickItemByText(title: string): Promise<void>; getCaptionText(): Promise<string>; /** * To manipulate with sorter button. */ getSorterButton(): ButtonAtom; /** * @returns {string} The value displayed in sorter. */ getCurrentValue(): Promise<string>; getLabelElement(): ElementFinder; getItems(): ElementArrayFinder; getSelectedItems(): ElementArrayFinder; isPopupDisplayed(): Promise<boolean>; isPopupHidden(): Promise<boolean>; private getToggleElement; private getMainTitleElement; }