You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having this error while attempting to upload a file using set_input_files_builder(). I'm supplying a file and mime type but I'm receiving an error that files[0].mimeType is undefined, how could this be?
Here is the code in question:
let file:File = File::new("Test".to_string(), "video/mp4".to_string(), &std::fs::read("/home/super/Downloads/test.mp4").unwrap());
video_input.set_input_files_builder(file).set_input_files().await.unwrap();
I'm new to playwright and even when I use Selenium I haven't been uploading files. So I may be just being a newb here. Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered:
@littley It may be this feature is not yet implemented in playwright-rust. I say "may be" because I couldn't get any official word from the devs yet.
But when I look at the tests folder the only test commented out is the test involving file upload. The test is tests/page/mod.rs#file_chooser. I'm yet to actually run those tests to investigate further.
I am also planning on testing this by downloading playwright-java (or python) and testing the feature to make sure it works there and that this isn't a problem with my system.
I'm having this error while attempting to upload a file using set_input_files_builder(). I'm supplying a file and mime type but I'm receiving an error that files[0].mimeType is undefined, how could this be?
Here is the code in question:
I'm new to playwright and even when I use Selenium I haven't been uploading files. So I may be just being a newb here. Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: