mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Implement Page.uploadFile (#61)
This patch implements `Page.uploadFile` method to support file upload inputs.
This commit is contained in:
committed by
Andrey Lushnikov
parent
739c1566a9
commit
da0cde1b45
1
test/assets/file-to-upload.txt
Normal file
1
test/assets/file-to-upload.txt
Normal file
@@ -0,0 +1 @@
|
||||
contents of the file
|
||||
9
test/assets/input/fileupload.html
Normal file
9
test/assets/input/fileupload.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>File upload test</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="file">
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user