title: Is it possible to interact with hidden elements with capybara?
body: <p>I have a file field that has <code>opacity: 0</code> and is overlaping a fake button. Its a common css technic to fake a sort of "Upload button" that displays consistently across different browsers.</p>
  
  <p>Capybara doesn't allows me to call <code>attach_file</code> on that input. The error is <code>Selenium::WebDriver::Error::ElementNotVisibleError: Element is not currently visible and so may not be interacted with</code>.</p>
  
  <p>Anybody knows any way to force capybara to interact with invisible elements?</p>
  
  <p>The answer is still unanswered, but I've found a work around. Nothing intelligent, just make visible the element with a simple script</p>
  
  <pre><code>  page.execute_script %Q{
      $('#photos').css({opacity: 1, transform: 'none'});
    }
  </code></pre>
  
  <p>I post it for the record.</p>