/** * 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, ActionableUtamElement as _ActionableUtamElement, TouchableUtamElement as _TouchableUtamElement } from '@utam/core'; import _MobileHomeCard from 'salesforce-pageobjects/salesforceapp/pageObjects/mcfmobilehome/mobileHomeCard'; /** * Represents the Mobile Home cards list (scroll view) in the Salesforce app. * Provides methods to locate cards by type, retrieve cards that are visible, and scroll/flick until a target card is in view. * Typical usage scenarios include: * • Flicking to a specific card using flickToCardOfType * • Interacting with the cards using getCards * • Getting a specific card component using getCardOfType * • Verifying whether a card exists using hasCardOfType * generated from JSON dist/salesforceapp/mcfmobilehome/mobileHomeCardList.utam.json * @version 2026-03-09T13:56:34.263Z * @author Salesforce */ export default class MobileHomeCardList extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Flick until the card with the given type is in view. */ flickToCardOfType(type: string): Promise; /** * Get all the cards. */ getCards(): Promise<_MobileHomeCard[]>; /** * Get the card of the given type. */ getCardOfType(type: string): Promise<_MobileHomeCard>; /** * Check whether a card with the given type exists. */ hasCardOfType(type: string): Promise; getRoot(): Promise<(_BaseUtamElement & _ActionableUtamElement & _TouchableUtamElement)>; }