Playwright::Page(3)

NAME
Playwright::Page - Automatically generated class for Playwright::Page

VERSION
version 1.551

CONSTRUCTOR

  new(%options)
You shouldn't have to call this directly. Instead it should be returned to you as the result of calls on Playwright objects, or objects it returns.

METHODS

  waitForPopup(@args)
Execute the Page::waitForPopup playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForPopup> for more information.

  waitForWorker(@args)
Execute the Page::waitForWorker playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForWorker> for more information.

  fileChooser(@args)
Execute the Page::fileChooser playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-fileChooser> for more information.

  isDisabled(@args)
Execute the Page::isDisabled playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isDisabled> for more information.

  exposeFunction(@args)
Execute the Page::exposeFunction playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-exposeFunction> for more information.

  reload(@args)
Execute the Page::reload playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-reload> for more information.

  requestGC(@args)
Execute the Page::requestGC playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-requestGC> for more information.

  click(@args)
Execute the Page::click playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-click> for more information.

  isVisible(@args)
Execute the Page::isVisible playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isVisible> for more information.

  requests(@args)
Execute the Page::requests playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-requests> for more information.

  addScriptTag(@args)
Execute the Page::addScriptTag playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-addScriptTag> for more information.

  waitForFunction(@args)
Execute the Page::waitForFunction playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForFunction> for more information.

  eval(@args)
Execute the Page::eval playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-$eval> for more information.

  coverage(@args)
Execute the Page::coverage playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-coverage> for more information.

  waitForEvent(@args)
Execute the Page::waitForEvent playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForEvent> for more information.

  innerHTML(@args)
Execute the Page::innerHTML playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-innerHTML> for more information.

  frameByUrl(@args)
Execute the Page::frameByUrl playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frameByUrl> for more information.

  selectOption(@args)
Execute the Page::selectOption playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-selectOption> for more information.

  pause(@args)
Execute the Page::pause playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-pause> for more information.

  setViewportSize(@args)
Execute the Page::setViewportSize playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setViewportSize> for more information.

  removeLocatorHandler(@args)
Execute the Page::removeLocatorHandler playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-removeLocatorHandler> for more information.

  selectMulti(@args)
Execute the Page::selectMulti playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-$$> for more information.

  requestFinished(@args)
Execute the Page::requestFinished playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-requestFinished> for more information.

  waitForNavigation(@args)
Execute the Page::waitForNavigation playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForNavigation> for more information.

  locator(@args)
Execute the Page::locator playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-locator> for more information.

  check(@args)
Execute the Page::check playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-check> for more information.

  webSocket(@args)
Execute the Page::webSocket playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-webSocket> for more information.

  frames(@args)
Execute the Page::frames playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frames> for more information.

  select(@args)
Execute the Page::select playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-$> for more information.

  evalMulti(@args)
Execute the Page::evalMulti playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-$$eval> for more information.

  context(@args)
Execute the Page::context playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-context> for more information.

  clock(@args)
Execute the Page::clock playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-clock> for more information.

  setChecked(@args)
Execute the Page::setChecked playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setChecked> for more information.

  screenshot(@args)
Execute the Page::screenshot playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-screenshot> for more information.

  crash(@args)
Execute the Page::crash playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-crash> for more information.

  mouse()
Returns a Playwright::Mouse object.

  innerText(@args)
Execute the Page::innerText playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-innerText> for more information.

  opener(@args)
Execute the Page::opener playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-opener> for more information.

  inputValue(@args)
Execute the Page::inputValue playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-inputValue> for more information.

  focus(@args)
Execute the Page::focus playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-focus> for more information.

  route(@args)
Execute the Page::route playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-route> for more information.

  isHidden(@args)
Execute the Page::isHidden playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isHidden> for more information.

  DOMContentLoaded(@args)
Execute the Page::DOMContentLoaded playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-DOMContentLoaded> for more information.

  frameDetached(@args)
Execute the Page::frameDetached playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frameDetached> for more information.

  getByTitle(@args)
Execute the Page::getByTitle playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByTitle> for more information.

  pageErrors(@args)
Execute the Page::pageErrors playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-pageErrors> for more information.

  waitForEvent2(@args)
Execute the Page::waitForEvent2 playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForEvent2> for more information.

  frameLocator(@args)
Execute the Page::frameLocator playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frameLocator> for more information.

  response(@args)
Execute the Page::response playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-response> for more information.

  consoleMessages(@args)
Execute the Page::consoleMessages playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-consoleMessages> for more information.

  download(@args)
Execute the Page::download playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-download> for more information.

  uncheck(@args)
Execute the Page::uncheck playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-uncheck> for more information.

  addInitScript(@args)
Execute the Page::addInitScript playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-addInitScript> for more information.

  title(@args)
Execute the Page::title playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-title> for more information.

  requestFailed(@args)
Execute the Page::requestFailed playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-requestFailed> for more information.

  viewportSize(@args)
Execute the Page::viewportSize playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-viewportSize> for more information.

  getByText(@args)
Execute the Page::getByText playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByText> for more information.

  type(@args)
Execute the Page::type playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-type> for more information.

  keyboard()
Returns a Playwright::Keyboard object.

  routeFromHAR(@args)
Execute the Page::routeFromHAR playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-routeFromHAR> for more information.

  close(@args)
Execute the Page::close playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-close> for more information.

  bringToFront(@args)
Execute the Page::bringToFront playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-bringToFront> for more information.

  tap(@args)
Execute the Page::tap playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-tap> for more information.

  waitForSelector(@args)
Execute the Page::waitForSelector playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForSelector> for more information.

  removeAllListeners(@args)
Execute the Page::removeAllListeners playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-removeAllListeners> for more information.

  frame(@args)
Execute the Page::frame playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frame> for more information.

  textContent(@args)
Execute the Page::textContent playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-textContent> for more information.

  waitForCondition(@args)
Execute the Page::waitForCondition playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForCondition> for more information.

  request(@args)
Execute the Page::request playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-request> for more information.

  evaluate(@args)
Execute the Page::evaluate playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-evaluate> for more information.

  workers(@args)
Execute the Page::workers playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-workers> for more information.

  waitForRequest(@args)
Execute the Page::waitForRequest playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForRequest> for more information.

  frameAttached(@args)
Execute the Page::frameAttached playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frameAttached> for more information.

  waitForLoadState(@args)
Execute the Page::waitForLoadState playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForLoadState> for more information.

  onceDialog(@args)
Execute the Page::onceDialog playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-onceDialog> for more information.

  unroute(@args)
Execute the Page::unroute playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-unroute> for more information.

  isClosed(@args)
Execute the Page::isClosed playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isClosed> for more information.

  waitForClose(@args)
Execute the Page::waitForClose playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForClose> for more information.

  setDefaultTimeout(@args)
Execute the Page::setDefaultTimeout playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setDefaultTimeout> for more information.

  frameNavigated(@args)
Execute the Page::frameNavigated playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-frameNavigated> for more information.

  url(@args)
Execute the Page::url playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-url> for more information.

  press(@args)
Execute the Page::press playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-press> for more information.

  dialog(@args)
Execute the Page::dialog playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-dialog> for more information.

  getByTestId(@args)
Execute the Page::getByTestId playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByTestId> for more information.

  popup(@args)
Execute the Page::popup playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-popup> for more information.

  waitForConsoleMessage(@args)
Execute the Page::waitForConsoleMessage playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForConsoleMessage> for more information.

  console(@args)
Execute the Page::console playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-console> for more information.

  pdf(@args)
Execute the Page::pdf playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-pdf> for more information.

  waitForDownload(@args)
Execute the Page::waitForDownload playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForDownload> for more information.

  worker(@args)
Execute the Page::worker playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-worker> for more information.

  mainFrame(@args)
Execute the Page::mainFrame playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-mainFrame> for more information.

  waitForURL(@args)
Execute the Page::waitForURL playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForURL> for more information.

  routeWebSocket(@args)
Execute the Page::routeWebSocket playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-routeWebSocket> for more information.

  addLocatorHandler(@args)
Execute the Page::addLocatorHandler playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-addLocatorHandler> for more information.

  content(@args)
Execute the Page::content playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-content> for more information.

  touchscreen(@args)
Execute the Page::touchscreen playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-touchscreen> for more information.

  isChecked(@args)
Execute the Page::isChecked playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isChecked> for more information.

  waitForTimeout(@args)
Execute the Page::waitForTimeout playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForTimeout> for more information.

  accessibility(@args)
Execute the Page::accessibility playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-accessibility> for more information.

  exposeBinding(@args)
Execute the Page::exposeBinding playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-exposeBinding> for more information.

  dispatchEvent(@args)
Execute the Page::dispatchEvent playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-dispatchEvent> for more information.

  setExtraHTTPHeaders(@args)
Execute the Page::setExtraHTTPHeaders playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setExtraHTTPHeaders> for more information.

  load(@args)
Execute the Page::load playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-load> for more information.

  waitForFileChooser(@args)
Execute the Page::waitForFileChooser playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForFileChooser> for more information.

  video(@args)
Execute the Page::video playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-video> for more information.

  isEnabled(@args)
Execute the Page::isEnabled playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isEnabled> for more information.

  goto(@args)
Execute the Page::goto playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-goto> for more information.

  getAttribute(@args)
Execute the Page::getAttribute playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getAttribute> for more information.

  hover(@args)
Execute the Page::hover playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-hover> for more information.

  getByRole(@args)
Execute the Page::getByRole playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByRole> for more information.

  addStyleTag(@args)
Execute the Page::addStyleTag playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-addStyleTag> for more information.

  getByPlaceholder(@args)
Execute the Page::getByPlaceholder playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByPlaceholder> for more information.

  dblclick(@args)
Execute the Page::dblclick playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-dblclick> for more information.

  waitForResponse(@args)
Execute the Page::waitForResponse playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForResponse> for more information.

  goForward(@args)
Execute the Page::goForward playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-goForward> for more information.

  emulateMedia(@args)
Execute the Page::emulateMedia playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-emulateMedia> for more information.

  isEditable(@args)
Execute the Page::isEditable playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-isEditable> for more information.

  getByLabel(@args)
Execute the Page::getByLabel playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByLabel> for more information.

  dragAndDrop(@args)
Execute the Page::dragAndDrop playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-dragAndDrop> for more information.

  setContent(@args)
Execute the Page::setContent playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setContent> for more information.

  unrouteAll(@args)
Execute the Page::unrouteAll playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-unrouteAll> for more information.

  getByAltText(@args)
Execute the Page::getByAltText playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-getByAltText> for more information.

  waitForWebSocket(@args)
Execute the Page::waitForWebSocket playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForWebSocket> for more information.

  setInputFiles(@args)
Execute the Page::setInputFiles playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setInputFiles> for more information.

  pageError(@args)
Execute the Page::pageError playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-pageError> for more information.

  waitForRequestFinished(@args)
Execute the Page::waitForRequestFinished playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-waitForRequestFinished> for more information.

  goBack(@args)
Execute the Page::goBack playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-goBack> for more information.

  evaluateHandle(@args)
Execute the Page::evaluateHandle playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-evaluateHandle> for more information.

  setDefaultNavigationTimeout(@args)
Execute the Page::setDefaultNavigationTimeout playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-setDefaultNavigationTimeout> for more information.

  fill(@args)
Execute the Page::fill playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-fill> for more information.

  on(@args)
Execute the Page::on playwright routine.

See <https://playwright.dev/docs/api/class-Page#Page-on> for more information.

SEE ALSO
Please see those modules/websites for more information related to this module.

•   Playwright

BUGS
Please report any bugs or feature requests on the bugtracker website <https://github.com/teodesian/playwright-perl/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS
Current Maintainers:

•   George S. Baugh <teodesian@gmail.com>

COPYRIGHT AND LICENSE
Copyright (c) 2025 Troglodyne LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.