playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

[Docs]: Page.route parameters out of date

Open stevenh opened this issue 7 months ago • 0 comments

Page(s)

Page.route handler

Description

The doc comments for the Page.route handler are out of date, the handler takes either a Route or a Route and a Request as correctly shown by doc info in VS Code on hover:

handler: ((Route) -> Any) | ((Route, Request) -> Any),

The docs site shows Callable[Route, Request]:Promise[Any] | Any#

So it's missing the one argument version.

stevenh avatar May 15 '25 10:05 stevenh