/** * 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, ClickableUtamElement as _ClickableUtamElement, ActionableUtamElement as _ActionableUtamElement } from '@utam/core'; import _Input from 'salesforce-pageobjects/lightning/pageObjects/input'; /** * Component that provides a toggle switch for enabling or disabling the Generative Canvas preference within an organization. It displays information about the feature and links to relevant resources. * Selector: src-experience_ui_gen_canvas-/setup-gen-canvas * generated from JSON dist/experience/ui/gen/canvas/setupGenCanvas.utam.json * @version 2026-03-09T13:56:35.551Z * @author Salesforce */ export default class SetupGenCanvas extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the box container is present and visible * @return boolean */ isBoxContainerVisible(): Promise; /** * Click on the legal link * @param _sectionDescriptionIndex index of parent element */ clickLegalLink(_sectionDescriptionIndex: number): Promise; /** * Click on the Salesforce link * @param _sectionDescriptionIndex index of parent element */ clickSalesforceLink(_sectionDescriptionIndex: number): Promise; /** * Click on the PTD link * @param _sectionDescriptionIndex index of parent element */ clickPtdLink(_sectionDescriptionIndex: number): Promise; /** * Get the text of the section title * @return string */ getSectionTitleText(): Promise; /** * Get the texts of all paragraphs in the section description * @return string[] * @param _sectionDescriptionIndex index of parent element */ getSectionDescriptionTexts(_sectionDescriptionIndex: number): Promise; /** * Get the text of the toggle label * @return string */ getToggleLabelText(): Promise; /** * Represents the toggle switch for enabling or disabling the Generative Canvas preference. */ getToggleSwitch(): Promise<_Input>; getEnableGenCanvas(): Promise<(_BaseUtamElement)>; getLightningPrimitiveToggle(): Promise<(_BaseUtamElement & _ActionableUtamElement & _ClickableUtamElement)>; }