Skip to content
masterclassBuddyTech Buzz5 fresh blogs · 5:00 AM IST

API reference

Playwright API reference

Playwright end-to-end testing

Identifiers
103
With full guides
0
Types
5

Topics covered

  • Locators
  • Auto-waiting
  • Fixtures
  • Network mocking
  • Auth state reuse
  • Visual testing
  • Parallelism
  • CI setup

Class

NameWhat it does
FrameClass
ElementHandleClass
RequestClass
ResponseClass
RouteClass
APIRequestContextClass
WorkerClass

Function

NameWhat it does
testFunction
expectFunction
locatorFunction
defineConfigFunction
expect.softFunction
test.beforeEachFunction
test.describeFunction
page.gotoFunction
page.clickFunction
page.fillFunction
page.waitForResponseFunction
page.screenshotFunction
test.stepFunction
test.beforeAllFunction
test.afterAllFunction
test.afterEachFunction
test.onlyFunction
test.skipFunction
test.fixmeFunction
test.failFunction
test.slowFunction
test.useFunction
test.extendFunction
chromiumFunction
firefoxFunction
webkitFunction

Interface

NameWhat it does
PageInterface
LocatorInterface
BrowserInterface
BrowserContextInterface

Const

NameWhat it does
pageConst
devicesConst

Module

NameWhat it does
page.typeModule
page.pressModule
page.checkModule
page.uncheckModule
page.selectOptionModule
page.hoverModule
page.focusModule
page.locatorModule
page.getByRoleModule
page.getByTextModule
page.getByLabelModule
page.getByPlaceholderModule
page.getByTestIdModule
page.getByTitleModule
page.getByAltTextModule
page.waitForSelectorModule
page.waitForLoadStateModule
page.waitForURLModule
page.waitForRequestModule
page.pdfModule
page.evaluateModule
page.routeModule
page.reloadModule
page.goBackModule
page.goForwardModule
page.setViewportSizeModule
page.addInitScriptModule
page.frameLocatorModule
page.contentModule
page.titleModule
locator.clickModule
locator.fillModule
locator.textContentModule
locator.innerTextModule
locator.getAttributeModule
locator.isVisibleModule
locator.isEnabledModule
locator.isCheckedModule
locator.countModule
locator.nthModule
locator.firstModule
locator.lastModule
locator.filterModule
locator.allModule
locator.waitForModule
locator.scrollIntoViewIfNeededModule
locator.boundingBoxModule
locator.hoverModule
locator.pressModule
toBeVisibleModule
toBeHiddenModule
toHaveTextModule
toContainTextModule
toHaveValueModule
toHaveAttributeModule
toHaveClassModule
toHaveCountModule
toBeCheckedModule
toBeEnabledModule
toBeDisabledModule
toBeFocusedModule
toHaveURLModule
toHaveTitleModule
toHaveScreenshotModule

Search across every package and filter by type in your dashboard.

Start learning