Using this code I cannot get a file to upload correctly to the website.
browser.form(:index, 2).file_field(:name, "filedata").set(""+folderName+"/iTunesArtwork")
Once the code is run it shows that it’s uploading by displaying a spinning wheel but it never actually uploads and the wheel just keeps spinning. If I upload it on my own though it uploads fine.
Here’s a link for the html:
http://f.cl.ly/items/3v3o1p1g0t2S1q3q3Q1h/Text%202011.09.03%2011:40:06%20PM.html
As you can see the html is in a form tag. If I try to access the file_field without going through the form first it will give me an error saying element can’t be interacted with because it’s not visible. Anyone have a clue what’s going on?
Your local file you are uploading mustn’t exist locally.
I have uploaded your HTML to: http://dl.dropbox.com/u/18859962/uploader.html
I tried this:
Please run your script against this hosted html file and report back.
Also, you should raise an exception if the local file doesn’t exist, so that eliminates that error.