I am trying to set attribute to a slider. I am using javascript to automate, I have currently tried the below 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();
});
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.