/** * 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, BaseUtamElement as _BaseUtamElement, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _DataProviderListContainer from 'salesforce-pageobjects/es_block_builder/pageObjects/dataProviderListContainer'; /** * Component that displays a form for adding and configuring data providers, handling both empty and non-empty states. * Selector: src-add-data-source * generated from JSON dist/es_block_builder/addDataSource.utam.json * @version 2026-03-09T13:56:35.300Z * @author Salesforce */ export default class AddDataSource extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check that empty state container is present and visible * @return boolean */ isEmptyStateVisible(): Promise; /** * Get text from the empty state heading * @return string */ getEmptyStateHeadingText(): Promise; /** * Check that non-empty state container is present and visible * @return boolean */ isNonEmptyStateVisible(): Promise; /** * Get text from the configure data source heading * @return string */ getConfigureDataSourceHeadingText(): Promise; /** * Check that add button container is present and visible * @return boolean * @param selectorStr CSS selector parameter */ isAddButtonContainerVisible(selectorStr: string): Promise; /** * Returns true if element "emptyStateContainer" present on the page * @return boolean */ verifyEmptyStateContainerPresence(): Promise; /** * Returns true if element "nonEmptyStateContainer" present on the page * @return boolean */ verifyNonEmptyStateContainerPresence(): Promise; /** * Returns true if element "emptyStateImage" present on the page * @return boolean */ verifyEmptyStateImagePresence(): Promise; /** * Returns true if element "addButtonContainer" present on the page * @return boolean * @param selectorStr CSS selector parameter */ verifyAddButtonContainerPresence(selectorStr: string): Promise; /** * Represents the description text in the empty state */ getEmptyStateDescription(): Promise<_FormattedRichText | null>; /** * Represents the add button in the empty state */ getEmptyStateAddButton(): Promise<_Button | null>; /** * Represents the add button in non-empty state * @param selectorStr CSS selector parameter */ getAddButton(selectorStr: string): Promise<_Button | null>; /** * Represents the description text in non-empty state */ getDescriptionText(): Promise<_FormattedRichText | null>; /** * Represents the data provider list container */ getDataProviderListContainer(): Promise<_DataProviderListContainer | null>; }