/** * 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, UtamBaseRootPageObject as _UtamBaseRootPageObject } from '@utam/core'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _Input from 'salesforce-pageobjects/lightning/pageObjects/input'; import _ModalSpinner from 'salesforce-pageobjects/dev/workspace/pageObjects/modalSpinner'; /** * A modal component that allows users to create or edit a workspace with fields for name, API name, and description. It has a header, input fields, a textarea, and buttons for canceling or saving changes. * Selector: dev_workspace-upsert-workspace-modal * generated from JSON dist/dev/workspace/upsertWorkspaceModal.utam.json * @version 2026-03-09T13:56:35.200Z * @author Salesforce */ declare class UpsertWorkspaceModal extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Get the text of the modal header * @return string */ getModalHeaderText(): Promise; waitForSaveButton(): Promise<_Button>; getRoot(): Promise<(_BaseUtamElement)>; /** * Represents the header of the modal */ getModalHeader(): Promise<(_BaseUtamElement)>; /** * Represents the input field for the workspace name */ getNameInput(): Promise<_Input>; /** * Represents the input field for the workspace API name */ getApiNameInput(): Promise<_Input>; /** * Represents the textarea for the workspace description */ getDescriptionTextarea(): Promise<_Input>; /** * Represents the cancel button in the modal footer */ getCancelButton(): Promise<_Button>; /** * Represents the save button in the modal footer, may be disabled based on conditions */ getSaveButton(): Promise<_Button>; /** * Represents the loading spinner component that appears during save operations */ getModalSpinner(): Promise<_ModalSpinner | null>; } export = UpsertWorkspaceModal;