/** * 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 } from '@utam/core'; import _BaseIcon from 'salesforce-pageobjects/runtime_copilot_base/pageObjects/baseIcon'; /** * A component that displays an avatar which can be either an image or an icon based on the provided source. If an image source is provided, it displays the image, otherwise, it defaults to a specified icon. * Selector: src-base-avatar * generated from JSON dist/runtime_copilot_base/baseAvatar.utam.json * @version 2026-03-09T13:56:37.209Z * @author Salesforce */ export default class BaseAvatar extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Checks if the avatar container span is visible * @return boolean */ isAvatarSpanVisible(): Promise; /** * Checks if the avatar image is present in the DOM * @return boolean */ isAvatarImagePresent(): Promise; /** * Retrieves the alternative text of the avatar image * @return string */ getAvatarImageAltText(attrName: string): Promise; /** * Returns true if element "avatarImage" present on the page * @return boolean */ verifyAvatarImagePresence(): Promise; /** * Represents the fallback icon when no image source is provided. */ getFallbackIcon(): Promise<_BaseIcon | null>; }