MCPcopy Index your code
hub / github.com/microsoft/playwright-python / set_input_files

Method set_input_files

playwright/_impl/_frame.py:820–840  ·  view source on GitHub ↗
(
        self,
        selector: str,
        files: Union[
            str, Path, FilePayload, Sequence[Union[str, Path]], Sequence[FilePayload]
        ],
        strict: bool = None,
        timeout: float = None,
        noWaitAfter: bool = None,
    )

Source from the content-addressed store, hash-verified

818 )
819
820 async def set_input_files(
821 self,
822 selector: str,
823 files: Union[
824 str, Path, FilePayload, Sequence[Union[str, Path]], Sequence[FilePayload]
825 ],
826 strict: bool = None,
827 timeout: float = None,
828 noWaitAfter: bool = None,
829 ) -> None:
830 converted = await convert_input_files(files, self.page.context)
831 await self._channel.send(
832 "setInputFiles",
833 self._timeout,
834 {
835 "selector": selector,
836 "strict": strict,
837 "timeout": self._timeout(timeout),
838 **converted,
839 },
840 )
841
842 async def _drop(
843 self,

Callers

nothing calls this directly

Calls 3

_timeoutMethod · 0.95
convert_input_filesFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected