Skip to main content

Variable: snackbarParts

const snackbarParts: object

Defined in: packages/component-driver-angular-material-v20/src/components/SnackbarDriver.ts:25

Type Declaration​

action​

action: object

The action button — the [matSnackBarAction] directive host. Absent when the snackbar was opened without an action.

action.driver​

driver: typeof HTMLButtonDriver = HTMLButtonDriver

action.locator​

locator: CssLocator

label​

label: object

The message element — the [matSnackBarLabel] directive host (rendered by SimpleSnackBar, or authored in a custom snackbar template).

label.driver​

driver: typeof HTMLElementDriver = HTMLElementDriver

label.locator​

locator: CssLocator

liveRegion​

liveRegion: object

The aria-live region announcing the message. Material moves the content into it shortly after opening; both before and after the move it stays inside the container, so the label/action parts above are unaffected.

liveRegion.driver​

driver: typeof HTMLElementDriver = HTMLElementDriver

liveRegion.locator​

locator: CssLocator