Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
File upload hack #89
Resubmitted pull request after
This pull request is a gross hack so that file uploading will work with GhostDriver. I'm submitting the pull request only to get the issue on the radar. The hack is clearly marked with comments in the code. To make this work correctly, we will need a proper fix in the PhantomJS project, or we will need to manipulate an attribute of the element so that the PhantomJS uploadFile() method can uniquely find the file upload element on the page.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
While almost drunk @jimevans and I concluded that it might be a good idea if PhantomJS offered an API that allowed to "pre-type" the Path to the file, but didn't need an element to "click on" (to open the File Selector Window Popup).
We can than just "click" on that element, that will cause the popup window to be invoked, and PhantomJS should already know how to fill that in.
We should be in business.