title: Modifying a style attribute in Selenium with execute_script, but the attribute's value doesn't change
body: <p>Using: Selenium with PhantomJS in Python</p>
  
  <p>I need to set a style attribute of an input tag to '' because it is set to "display:None" which prevents me from filling the input with send_keys in Selenium.</p>
  
  <p>I am using execute_script to achieve this. execute_script runs, but the style attribute remains unaltered. Why isn't PhantomJS changing the style attribute?</p>
  
  <p><strong>HTML with style attribute I want to remove</strong>:</p>
  
  <pre><code>&lt;input type="password" size="10" id="navbar_password" name="vb_login_password" tabindex="102" class="textbox" style="display: none;"&gt;
  </code></pre>
  
  <p><strong>Python Selenium script:</strong></p>
  
  <p>Why isn't the style attribute's value being changed by execute_script?</p>
  
  <pre><code>password = driver.find_element_by_name("vb_login_password")
  
  driver.execute_script("arguments[0]['style'] = arguments[1]", password, '')
  
  print(password.get_attribute("style"))
  
  //display:none;
  </code></pre>