Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you upload a file using Selenium IDE?

This used to work in the past, but recently I've been trying to upload a file using Selenium IDE, and now I'm getting this error:

[error] Unexpected Exception: code -> 1000, INDEX_SIZE_ERR -> 1, DOMSTRING_SIZE_ERR -> 2, HIERARCHY_REQUEST_ERR -> 3, WRONG_DOCUMENT_ERR -> 4, INVALID_CHARACTER_ERR -> 5, NO_DATA_ALLOWED_ERR -> 6, NO_MODIFICATION_ALLOWED_ERR -> 7, NOT_FOUND_ERR -> 8, NOT_SUPPORTED_ERR -> 9, INUSE_ATTRIBUTE_ERR -> 10, INVALID_STATE_ERR -> 11, SYNTAX_ERR -> 12, INVALID_MODIFICATION_ERR -> 13, NAMESPACE_ERR -> 14, INVALID_ACCESS_ERR -> 15, VALIDATION_ERR -> 16, TYPE_MISMATCH_ERR -> 17, DATA_CLONE_ERR -> 25, message -> Security error, result -> 2152924136, name -> NS_ERROR_DOM_SECURITY_ERR, filename -> chrome://selenium-ide/content/selenium-core/scripts/atoms.js, lineNumber -> 8911, columnNumber -> 0, location -> JS frame :: chrome://selenium-ide/content/selenium-core/scripts/atoms.js :: :: line 8911, inner -> null, data -> null

The commands I'm using are:

Command: type
Target: //*[locator]
Value: path/to/file

Is anyone else having this problem?

like image 866
ngtran Avatar asked Nov 15 '11 18:11

ngtran


1 Answers

This only affect FF8

Bug report and a suggested fix here:

Issue 2826: type command fails with security error in Firefox 8 for file inputs

like image 83
chim Avatar answered Sep 22 '22 16:09

chim