playwright/api/
file_chooser.rs1pub use crate::imp::file_hooser::FileChooser;
2use crate::{
3 api::{element_handle::SetInputFilesBuilder, ElementHandle, Page},
4 imp::utils::File
5};
6
7impl FileChooser {
8 fn element(&self) -> ElementHandle { ElementHandle::new(self.element_handle.clone()) }
10 fn is_multiple(&self) -> bool { self.is_multiple }
12 fn page(&self) -> Page { Page::new(self.page.clone()) }
14
15 fn set_input_files_builder(&self, file: File) -> SetInputFilesBuilder {
18 SetInputFilesBuilder::new(self.element_handle.clone(), file)
19 }
20}