I have an array defined.
addEngrSKU = async () => {
await this.selectEngravingSku();
};
selectEngravingSku = async () => {
const engrSkuIds = [
this.testData.engrSkuId1,
this.testData.engrSkuId2,
this.testData.engrSkuId3,
this.testData.engrSkuId4,
this.testData.engrSkuId5,
];
The purpose is that to get a SKUID and having 5 SKUs in case if one go OOS, I can use the other.
Please suggest how to call this while execution.
Thanks
I have to call the above in the below code
await this.page.locator(skuIdElem).type(this.testData.ENGRSKUID);
I am calling only one SKUID as of now (type(this.testData.ENGRSKUID)). But since this is not a good practice, I want to have it in array,
Please help.