/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _Input from 'salesforce-pageobjects/lightning/pageObjects/input'; import _FormattedName from 'salesforce-pageobjects/lightning/pageObjects/formattedName'; import _FormattedText from 'salesforce-pageobjects/lightning/pageObjects/formattedText'; import _FormattedNumber from 'salesforce-pageobjects/lightning/pageObjects/formattedNumber'; import _FormattedEmail from 'salesforce-pageobjects/lightning/pageObjects/formattedEmail'; import _FormattedPhone from 'salesforce-pageobjects/lightning/pageObjects/formattedPhone'; import _FormattedUrl from 'salesforce-pageobjects/lightning/pageObjects/formattedUrl'; import _FormattedLookup from 'salesforce-pageobjects/lightning/pageObjects/formattedLookup'; import _FormattedAddress from 'salesforce-pageobjects/lightning/pageObjects/formattedAddress'; import _FormattedLocation from 'salesforce-pageobjects/lightning/pageObjects/formattedLocation'; import _FormattedRichText from 'salesforce-pageobjects/lightning/pageObjects/formattedRichText'; /** * Selector: lightning-output-field * Represents the lightning-output-field Lightning web component. * Get the output field's label text. * Get the string value of the name, text, phone, rich text, lookup, email, number, location, url, or address based on the component type. * generated from JSON dist/lightning/outputField.utam.json * @version 2026-03-09T13:56:36.166Z * @author Salesforce */ export default class OutputField extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Get output field label text * @return string */ getLabelText(): Promise; /** * Get name output field formatted display value * @return string */ getNameString(): Promise; /** * Get text output field formatted display value * @return string */ getTextString(): Promise; /** * Get combobox output field formatted display value * @return string */ getComboboxString(): Promise; /** * Get number output field formatted display value number or double * @return string */ getNumberString(): Promise; /** * Get email output field display email address value with the mailto: URL scheme * @return string */ getEmailString(): Promise; /** * Get location latitude and longitude display values in decimal degrees format: 90.0000, 180.0000 * @return string */ getLocationString(): Promise; /** * Get phone output field display phone number with the tel: URL scheme * @return string */ getPhoneString(): Promise; /** * Get the URL value from the href attribute of lightning-formatted-url link * @return string */ getUrlString(): Promise; /** * Get the rich text content value of lightning-formatted-rich-text * @return string */ getRichtextString(): Promise; /** * Get the lightning-formatted-lookup display value as text * @return string */ getLookupString(): Promise; /** * Get the formatted address display value as text * @return string */ getAddressString(): Promise; /** * Get the field value based on it's field type * @return string | null * @throws Error if field type is unknown */ getFieldValue(fieldType: string): Promise; /** * Get output field class name * @return string */ getClassName(): Promise; /** * wait for input element to load * @return utam-lightning/pageObjects/input */ waitAndGetInput(): Promise<_Input>; getFormattedLocation(): Promise<_FormattedLocation>; getFormattedName(): Promise<_FormattedName>; getFormattedNumber(): Promise<_FormattedNumber>; getFormattedPhone(): Promise<_FormattedPhone>; getFormattedAddress(): Promise<_FormattedAddress>; getFormattedLookup(): Promise<_FormattedLookup>; getFormattedEmail(): Promise<_FormattedEmail>; getFormattedRichText(): Promise<_FormattedRichText>; getFormattedText(): Promise<_FormattedText>; getFormattedUrl(): Promise<_FormattedUrl>; getInput(): Promise<_Input>; }