Untitled
unknown
javascript
2 years ago
229 B
259
Indexable
async addAllItemsToCart(page: Page) {
const rows = await this.allItem.all();
for (let index = 0; index < rows.length; index++) {
await page.getByRole("button", {name: "Add To Cart"}).first().click()
}
}Editor is loading...
Leave a Comment