Untitled

 avatar
unknown
javascript
a year ago
229 B
213
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