/** * 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, DraggableUtamElement as _DraggableUtamElement, UtamBaseRootPageObject as _UtamBaseRootPageObject, ActionableUtamElement as _ActionableUtamElement, TouchableUtamElement as _TouchableUtamElement } from '@utam/core'; /** * Represents the Mobile Home editor activity in the Salesforce app. * Provides methods to add cards, cancel or save edits, and access card drag handles and labels for reordering and verification. * Typical usage scenarios include: * • Adding a new card to the layout using addCard * • Canceling edits and leaving the editor using cancelEdit * • Saving edits and leaving the editor using saveEdit * • Retrieving drag handles for reordering cards using getCardDragHandles * • Retrieving the list of card type labels using getCardTypeLabels * generated from JSON dist/salesforceapp/mcfmobilehome/mobileHomeEdit.utam.json * @version 2026-03-09T13:56:34.281Z * @author Salesforce */ export default class MobileHomeEdit extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Tap Add Card to add a new card to the mobile home layout. */ addCard(): Promise; /** * Cancel editing and dismiss the mobile home editor. */ cancelEdit(): Promise; /** * Save changes and exit the mobile home editor. */ saveEdit(): Promise; /** * Get drag handles for cards (for reordering). */ getCardDragHandles(): Promise<(_BaseUtamElement & _DraggableUtamElement)[]>; /** * Get type labels for all cards shown in the editor. */ getCardTypeLabels(): Promise; getRoot(): Promise<(_BaseUtamElement & _ActionableUtamElement & _TouchableUtamElement)>; }