import { Locator } from '@playwright/test';

export async function getAttribute(locator: Locator, attribute: string): Promise<string | null> {
  await locator.waitFor();
  return locator.getAttribute(attribute);
}

export async function getCount(host: Locator, locator: Locator): Promise<number> {
  await host.waitFor();
  return locator.count();
}
