title: How could I set value to an disabled input element
body: <p>I want to set the date value by selenium.</p>
  
  <p>Which is a datapicker element with disabled attribute</p>
  
  <p>This script doesn't work for me</p>
  
  <pre><code>@driver.execute_script("document.getElementById('departureDate').setAttribute('value', '2015-09-07')")
  </code></pre>
  
  <p>I even couldn't get value by this <code>@driver.execute_script("document.getElementById('departureDate').getAttribute('value')")</code></p>
  
  <p>However I can get inspect the value by</p>
  
  <pre><code>[50] pry(#&lt;Tiger&gt;)&gt; el = @driver.find_element(:id, "departureDate")
  #&lt;Selenium::WebDriver::Element:0x3f5415a2252a05c4 id="{f12a4095-6326-d241-b22d-aca9c03918e3}"&gt;
  [51] pry(#&lt;Tiger&gt;)&gt; el.attribute("value")
  "2015-09-18"
  </code></pre>
  
  <p>But how can I set the value with <code>2015-09-07</code>    </p>
  
  <p>I'm working on this page <code>https://m.tigerair.com/booking/search</code></p>