title: How to Set style property to element using Selenium?
body: <pre><code>driver.SwitchTo().Frame("contentFrame");
  IWebElement str = driver.FindElement(By.XPath("//*[@id='dvCustomDateRange']"));
  </code></pre>
  
  <p>I need to change the style attribute from style="display: none;" to style="display: block;". </p>
  
  <p>This is the element:</p>
  
  <p><code>&lt;div id="dvCustomDateRange" tabindex="0" class="filters hidden inline-block inlineChilds NoPrint width100 marginBt7" style="display: block;"&gt;</code></p>
  
  <p>any idea how to do this using Selenium? Im try getAttribute and getCssValue methods to change value but without result.</p>