People seem to have some problems when it comes to testing file uploads with Selenium RC. I’m not the first to provide a solution but making this work with Selenium RC might take a few more steps.
Step 1. Create a new Firefox profile. Step 2. Edit prefs.js to include:
Step 3. Modify your AUT (this is why this is bad way to test file uploads via Selenium) to request enhanced permissions via:
user_pref("capability.principal.codebase.p0.granted", "UniversalFileRead"); user_pref("capability.principal.codebase.p0.id", "http://your_aut_domain.com"); user_pref("capability.principal.codebase.p0.subjectName", "");
You can then edit your SeleniumRC instance to launch FireFox using this specific profile.
You can, and probably should, go farther with this by granting per file permissions.