QtWebKit html form file upload
-
how to submit programmatically a html form with file upload input?
-
Look into QNetworkAccessManager, and check out the post method.
-
But i'm interested in html form completion(file input field) in qtwebkit for web application testing.
-
Ah, but that is not what you implied (at least, to me) before. Now that I re-read your question, it could have meant that from the start (especially if you considder the forum it was posted in).
I guess you can do what you want by using javascript. See QWebFrame::evaluateJavaScript
-
The text fields and the submit button are ok, but with javascript how can i fill out the file upload field(<input type="file"...>)?
-
this question would help me a lot as well, if someone knows how to set a file in a input field and then submit it to the server would be nice.