|
| typing.Union[ Literal["assert"], Literal["clear"], Literal["count"], Literal["debug"], Literal["dir"], Literal["dirxml"], Literal["endGroup"], Literal["error"], Literal["info"], Literal["log"], Literal["profile"], Literal["profileEnd"], Literal["startGroup"], Literal["startGroupCollapsed"], Literal["table"], Literal["timeEnd"], Literal["trace"], Literal["warning"],] | type (self) |
| |
| str | text (self) |
| |
| typing.List["JSHandle"] | args (self) |
| |
| SourceLocation | location (self) |
| |
| typing.Optional["Page"] | page (self) |
| |
| typing.Optional["Worker"] | worker (self) |
| |
| None | __init__ (self, Any impl_obj) |
| |
|
str | __str__ (self) |
| |
| None | on (self, Any event, Any f) |
| |
| None | once (self, Any event, Any f) |
| |
| None | remove_listener (self, Any event, Any f) |
| |
|
str | __repr__ (self) |
| |
|
|
Callable[..., None] | _wrap_handler (self, Union[Callable[..., Any], Any] handler) |
| |
|
| _loop |
| |
|
| _impl_obj |
| |
◆ args()
| typing.List["JSHandle"] playwright.async_api._generated.ConsoleMessage.args |
( |
|
self | ) |
|
ConsoleMessage.args
List of arguments passed to a `console` function call. See also `page.on('console')`.
Returns
-------
List[JSHandle]
◆ location()
| SourceLocation playwright.async_api._generated.ConsoleMessage.location |
( |
|
self | ) |
|
ConsoleMessage.location
Returns
-------
{url: str, lineNumber: int, columnNumber: int}
◆ page()
| typing.Optional["Page"] playwright.async_api._generated.ConsoleMessage.page |
( |
|
self | ) |
|
ConsoleMessage.page
The page that produced this console message, if any.
Returns
-------
Union[Page, None]
◆ text()
| str playwright.async_api._generated.ConsoleMessage.text |
( |
|
self | ) |
|
ConsoleMessage.text
The text of the console message.
Returns
-------
str
◆ type()
| typing.Union[
Literal["assert"],
Literal["clear"],
Literal["count"],
Literal["debug"],
Literal["dir"],
Literal["dirxml"],
Literal["endGroup"],
Literal["error"],
Literal["info"],
Literal["log"],
Literal["profile"],
Literal["profileEnd"],
Literal["startGroup"],
Literal["startGroupCollapsed"],
Literal["table"],
Literal["timeEnd"],
Literal["trace"],
Literal["warning"],
] playwright.async_api._generated.ConsoleMessage.type |
( |
|
self | ) |
|
ConsoleMessage.type
Returns
-------
Union["assert", "clear", "count", "debug", "dir", "dirxml", "endGroup", "error", "info", "log", "profile", "profileEnd", "startGroup", "startGroupCollapsed", "table", "timeEnd", "trace", "warning"]
◆ worker()
| typing.Optional["Worker"] playwright.async_api._generated.ConsoleMessage.worker |
( |
|
self | ) |
|
ConsoleMessage.worker
The web worker or service worker that produced this console message, if any. Note that console messages from web
workers also have non-null `console_message.page()`.
Returns
-------
Union[Worker, None]
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/playwright/async_api/_generated.py