/** * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE file or https://utam.dev/salesforce/license */ import { Driver as _Driver, Element as _Element, Locator as _Locator, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _DynamicCanvasWrapper from 'salesforce-pageobjects/experience/ui/gen/canvas/pageObjects/dynamicCanvasWrapper'; import _LoadingTile from 'salesforce-pageobjects/experience/ui/gen/canvas/pageObjects/loadingTile'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; /** * A grid-based component that allows users to drag and drop items. It also handles dynamic loading of content and updates based on events. Users can interact with items that can be draggable and contain nested dynamic components with specific titles, icons, and other attributes. * Selector: experience_ui_gen_canvas-canvas-items * generated from JSON dist/experience/ui/gen/canvas/canvasItems.utam.json * @version 2026-03-09T13:56:35.474Z * @author Salesforce */ export default class CanvasItems extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the grid wrapper is visible * @return boolean */ isGridWrapperVisible(): Promise; /** * Check if the grid area is visible * @return boolean */ isGridAreaVisible(): Promise; /** * Check if grid items are present * @return boolean[] * @param _gridItemIndex index of parent element */ isGridItemPresent(_gridItemIndex: number): Promise; /** * Check if the grid item is focused * @return boolean[] * @param _gridItemIndex index of parent element */ isGridItemFocused(_gridItemIndex: number): Promise; /** * Check if the grid item is enabled * @return boolean[] * @param _gridItemIndex index of parent element */ isGridItemEnabled(_gridItemIndex: number): Promise; /** * @param _gridItemIndex index of parent element */ waitForDynamicCanvasWrapper(_gridItemIndex: number): Promise<_DynamicCanvasWrapper>; waitForLoadingTile(): Promise<_LoadingTile>; /** * The drag and drop icon button within each grid item. * @param _gridItemIndex index of parent element */ getDragButton(_gridItemIndex: number): Promise<_ButtonIcon>; /** * The dynamic component wrapper that can load different content based on attributes. * @param _gridItemIndex index of parent element */ getDynamicCanvasWrapper(_gridItemIndex: number): Promise<_DynamicCanvasWrapper>; /** * Represents the loading state of the grid. */ getLoadingTile(): Promise<_LoadingTile | null>; }