|
| "Page" | page (self) |
| |
| "ElementHandle" | element (self) |
| |
| bool | is_multiple (self) |
| |
| None | set_files (self, typing.Union[str, pathlib.Path, FilePayload, typing.Sequence[typing.Union[str, pathlib.Path]], typing.Sequence[FilePayload],] files, *typing.Optional[float] timeout=None, typing.Optional[bool] no_wait_after=None) |
| |
| 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 |
| |
◆ element()
| "ElementHandle" playwright.async_api._generated.FileChooser.element |
( |
|
self | ) |
|
FileChooser.element
Returns input element associated with this file chooser.
Returns
-------
ElementHandle
◆ is_multiple()
| bool playwright.async_api._generated.FileChooser.is_multiple |
( |
|
self | ) |
|
FileChooser.is_multiple
Returns whether this file chooser accepts multiple files.
Returns
-------
bool
◆ page()
| "Page" playwright.async_api._generated.FileChooser.page |
( |
|
self | ) |
|
FileChooser.page
Returns page this file chooser belongs to.
Returns
-------
Page
◆ set_files()
| None playwright.async_api._generated.FileChooser.set_files |
( |
|
self, |
|
|
typing.Union[
str,
pathlib.Path,
FilePayload,
typing.Sequence[typing.Union[str, pathlib.Path]],
typing.Sequence[FilePayload],
] |
files, |
|
|
*typing.Optional[float] |
timeout = None, |
|
|
typing.Optional[bool] |
no_wait_after = None |
|
) |
| |
FileChooser.set_files
Sets the value of the file input this chooser is associated with. If some of the `filePaths` are relative paths,
then they are resolved relative to the current working directory. For empty array, clears the selected files.
Parameters
----------
files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
timeout : Union[float, None]
Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can
be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
no_wait_after : Union[bool, None]
This option has no effect.
Deprecated: This option has no effect.
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