Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
427 views
in Selenium by
recategorized by
It worked earlier, recently I am trying to upload a file using Selenium IDE and its throwing below 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
 
 
Commands:
 
Command: type
Target: //*[locator]
Value: path/to/file

1 Answer

0 like 0 dislike
by
selected by
 
Best answer
1. Get the latest version of 7-zip on Windows.
2. Open the jar file with 7-zip.
3. Delete the LICENSE file.  I'm sure this isn't exactly kosher, but case-insensitive Windows confuses the LICENSE file with the license directory.
4. Go to the core\scripts path within the jar file.
5. Edit the atoms.js file.  (Right-click and Edit, or click and F4.)
6. Find the line with "a.value = d" and change it to "XPCNativeWrapper(a).value = d;"
7. Save the changes.  You're done!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...