CSS style sheet:
background: url("/olam/images/brand30/usage_meter/green-vertical.png") repeat-x scroll 0 0 rgba(0, 0, 0, 0);
I want to retrieve the URL, tried using below :
String cssValue = driver.findelement(by.xpath).getCssValue("background");
System.out.println(driver.findelement(by.xpath).getCssValue("background"));
Still unable to retrieve the background value, i am getting Null value.