@wix/design-system
Version:
@wix/design-system
60 lines • 1.98 kB
TypeScript
import { UniDriver } from '@wix/unidriver-core';
export type FloatingNotificationUniDriver = ReturnType<typeof floatingNotificationDriverFactory>;
export declare const floatingNotificationDriverFactory: (base: UniDriver) => {
/**
* Clicks notification button.
*/
clickButton: () => Promise<void>;
/**
* Get the notification button's text.
*/
getButtonLabel: () => Promise<string>;
/**
* Clicks the notification text button.
*/
clickTextButton: () => Promise<void>;
/**
* Get the notification text button's text
*/
getTextButtonLabel: () => Promise<string>;
/** Clicks the notification close button
*/
clickCloseButton: () => Promise<void>;
/**
* Get the notification text.
*/
getText: () => Promise<string>;
/**
* Checks whether button with passed tag name exists.
* @param as Tag name
*/
isButtonAs: (as: keyof HTMLElementTagNameMap) => Promise<boolean>;
/**
* Get the notification button href attribute's value.
*/
getButtonHref: () => Promise<string | null>;
/**
* Get the notification button attribute's value by name.
* @param attrName Attribute name
*/
getButtonAttr: (attrName: string) => Promise<string | null>;
/**
* Checks whether text button with passed tag name exists.
* @param as Tag name
*/
isTextButtonAs: (as: keyof HTMLElementTagNameMap) => Promise<boolean>;
/**
* Get the notification text button href attribute's value.
*/
getTextButtonHref: () => Promise<string | null>;
/**
* Get the notification text button attribute's value by name.
* @param attrName Attribute name
*/
getTextButtonAttr: (attrName: string) => Promise<string | null>;
exists: () => Promise<boolean>;
element: () => Promise<any>;
click: () => Promise<void>;
base: UniDriver;
};
//# sourceMappingURL=FloatingNotification.uni.driver.d.ts.map