title: How can i set new style of element using selenium web-driver
body: <p>I am building test plan using (selenium webdriver - java) for page that contain button which open small color selection window.</p>
  
  <p>this is the code of the right panel of the color selection window:</p>
  
  <pre><code>&lt;span class="ui-colorpicker-bar-layer-pointer"&gt;  
  &lt;span class="ui-colorpicker-bar-pointer" style="top: 51.0333px;"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>the question is how can i set new style..... , i found this solution:</p>
  
  <pre><code>JavascriptExecutor js = (JavascriptExecutor) driver;
   js.executeScript("document.getElementById('colorPickIcon').setAttribute('style', '22.3333px')");
  </code></pre>
  
  <p>and it doesn't work....any advice's?</p>