/** * 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 _OutputField from 'salesforce-pageobjects/lightning/pageObjects/outputField'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; import _InputField from 'salesforce-pageobjects/lightning/pageObjects/inputField'; /** * Selector: lightning-record-form * Represents the lightning-record-form Lightning web component. * Gets input and output fields, wait for form to load, makes save and cancel action and make click action on output field edit icon * generated from JSON dist/lightning/recordForm.utam.json * @version 2026-03-09T13:56:36.217Z * @author Salesforce */ export default class RecordForm extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Click on the save button */ save(): Promise; /** * Click on the cancel button */ cancel(): Promise; /** * Wait for form to load * @throws TimeoutError */ waitUntilReady(): Promise; /** * Wait for output fields to load * @throws TimeoutError */ waitAndGetOutputFields(): Promise<_OutputField[]>; /** * Click on edit icon inside output field by index */ editIconClick(index: number): Promise; getInputFields(): Promise<_InputField[] | null>; getOutputFields(): Promise<_OutputField[] | null>; getOutputFieldByIndex(index: number): Promise<_OutputField | null>; getEditIconByIndex(index: number): Promise<_ButtonIcon | null>; }