MCPcopy
hub / github.com/vercel/next.js / getByRole

Method getByRole

test/lib/browsers/playwright.ts:630–635  ·  view source on GitHub ↗
(
    role: Parameters<(typeof page)['getByRole']>[0],
    options?: Parameters<(typeof page)['getByRole']>[1]
  )

Source from the content-addressed store, hash-verified

628 }
629
630 getByRole(
631 role: Parameters<(typeof page)['getByRole']>[0],
632 options?: Parameters<(typeof page)['getByRole']>[1]
633 ) {
634 return page.getByRole(role, options)
635 }
636
637 locateRedbox(): Locator {
638 return page.locator(

Callers 15

index.test.tsxFile · 0.80
page.test.jsxFile · 0.80
component.test.jsxFile · 0.80
page.test.jsxFile · 0.80
index.test.tsxFile · 0.80
page.test.tsxFile · 0.80
counter.test.tsxFile · 0.80
page.test.tsxFile · 0.80
index.test.tsxFile · 0.80
page.test.tsxFile · 0.80
counter.test.tsxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected