title: How to set attribute to using selenium javascript?
body: <p>I am trying to set attribute to a slider. I am using javascript to automate, I have currently tried the below code,</p>
  
  <pre><code>it('should pan plots when you click and drag', function(done) {
                  driver.sleep(2000);
  
                  driver.findElement(webdriver.By.css('._md-slider-wrapper')).click().then(function(){
                  driver.findElement(webdriver.By.css('._md-thumb-container')).SetAttribute("style", "left: 22px");
                      done();
                  });
  </code></pre>
  
  <p>but it is not working. I have also tried to pass the element to a function and then try to set the attribute but it didnt work either. i am basically trying to set the value to a slider. </p>