Menu
Open source

Frame

Caution

This API is a work in progress. Some of the following functionalities might behave unexpectedly.

Supported APIs

MethodPlaywright Relevant Distinctions
frame.$(selector[, options])-
frame.check(selector[, options])-
frame.childFrames()-
frame.click(selector[, options])-
frame.content()-
frame.dblclick(selector[, options])Double click on an element matching the provided selector.
frame.dblclick(selector[, options])-
frame.dispatchEvent(selector, type[, eventInit, options])-
frame.evaluate(pageFunction[, arg])-
frame.evaluateHandle(pageFunction[, arg])-
frame.fill(selector, value[, options])-
frame.focus(selector[, options])-
frame.frameElement()-
frame.getAttribute(selector, name[, options])-
frame.goto(url[, options])-
frame.hover(selector[, options])-
frame.innerHTML(selector[, options])-
frame.innerText(selector[, options])-
frame.inputValue(selector[, options])-
frame.isChecked(selector[, options])-
frame.isDetached()-
frame.isDisabled(selector[, options])-
frame.isEditable(selector[, options])-
frame.isEnabled(selector[, options])-
frame.isHidden(selector[, options])Checks if the matched element is hidden.
frame.isVisible(selector[, options])Checks if the matched element is visible.
frame.locator(selector[, options])-
frame.name()-
frame.page()-
frame.parentFrame()-
frame.press(selector, key[, options])-
frame.selectOption(selector, values[, options])-
frame.setChecked(selector, checked[, options])-
frame.setContent(html[, options])-
frame.setInputFiles(selector, file[, options])Sets the file input element’s value to the specified files.
frame.tap(selector[, options])-
frame.textContent(selector[, options])-
frame.title()-
frame.title()-
frame.uncheck(selector[, options])-
frame.url()-
frame.waitForFunction(pageFunction[, arg, options])-
frame.waitForLoadState([state, options])-
frame.waitForNavigation([options])-
frame.waitForSelector(selector[, options])-
frame.waitForTimeout(timeout)-
frame.waitForURL(url[, options])-