/** * 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, ActionableUtamElement as _ActionableUtamElement, ClickableUtamElement as _ClickableUtamElement, EditableUtamElement as _EditableUtamElement, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _Accordion from 'salesforce-pageobjects/lightning/pageObjects/accordion'; /** * Component that allows users to view and edit a SOQL query within an accordion section if they have admin privileges. The query can be edited and saved or canceled. * Selector: src-experience_ui_gen_canvas-/query-accordion * generated from JSON dist/experience/ui/gen/canvas/queryAccordion.utam.json * @version 2026-03-09T13:56:35.541Z * @author Salesforce */ export default class QueryAccordion extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click the edit query button */ clickEditQuery(): Promise; /** * Enter text into the query text area */ typeInQuery(text: string): Promise; /** * Click the save query button */ clickSaveQuery(): Promise; /** * Click the cancel button to stop editing */ clickCancelEdit(): Promise; /** * Get the text of the query when not in edit mode * @return string */ getQueryText(): Promise; /** * Check if the query code element is visible * @return boolean */ isQueryCodeVisible(): Promise; /** * Check if the edit query button is visible * @return boolean */ isEditQueryButtonVisible(): Promise; /** * Check if the query text area is visible * @return boolean */ isQueryTextAreaVisible(): Promise; /** * Check if the cancel button is visible * @return boolean */ isCancelButtonVisible(): Promise; /** * Check if the save query button is visible * @return boolean */ isSaveQueryButtonVisible(): Promise; /** * Returns true if element "queryCode" present on the page * @return boolean */ verifyQueryCodePresence(): Promise; /** * Returns true if element "editQueryButton" present on the page * @return boolean */ verifyEditQueryButtonPresence(): Promise; /** * Returns true if element "queryTextArea" present on the page * @return boolean */ verifyQueryTextAreaPresence(): Promise; /** * Returns true if element "cancelButton" present on the page * @return boolean */ verifyCancelButtonPresence(): Promise; /** * Returns true if element "saveQueryButton" present on the page * @return boolean */ verifySaveQueryButtonPresence(): Promise; /** * Represents the accordion that is only visible to admins */ getAdminAccordion(): Promise<_Accordion | null>; }