there are 2 steps for take all enabled element with locator in playwrigth (docs enabled here(link)):
for example:
await (await page.locator('your locator').all()).filter((el: Locator) => el.isEnabled())