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