I'm trying to automate file upload on a modern web page that uses some fancy drag&drop upload panel on top of the old <input type="file">. The element is still on the page but Selenium can't use it - I get the famous
"Element is not currently visible and so may not be interacted with"
error. I think I've got two options:
- Make the element somehow visible - but calling jQuery(...).show()on it doesn't help, I'm not quite sure why F12 tools report the element as visible but Selenium still thinks it isn't (and, truth to be told, I can't see the file field either, F12 tools just highlight a rectangular area on the page)
- Set the value of <input type="file">via JavaScript but I get all sorts of security errors (tried Firefox and Chrome).
What can I do about it? Ideally, there would be a way to force Selenium to carry out the action no matter if the element is visible or not but I don't think it's possible, is it?
 
     
    