Answer the question
In order to leave comments, you need to log in
How to send upload file in phantomjs python?
There is a piece of code that works fine in Chrome.
path2file = r'D:\test\file.apk'
files = browser.find_element_by_name('files')
files.send_keys(path2file)
<input type="file" name="files" multiple="">
var webPage = require('webpage');
var page = webPage.create();
page.uploadFile('input[name=image]', '/path/to/some/photo.jpg');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question