import { DewElement } from "../element"; import { ReadLocators } from "../../readLocators"; const locators:any = ReadLocators.readJson(); /** * EProcCartItems class */ export class EProcCartItems { /** * To get sum total of amount of items present in cart * @return {String} amountWithCurrency - sum of amount of items in cart */ async getTotalAmountOfCartItems(): Promise { let amountWithCurrency: any = ``; amountWithCurrency = await DewElement.grabTextFrom(locators.eProcCartAmountXpath); return amountWithCurrency; } }