I use selenium's webdriverJS to automate some things on an html5 page. I had to use a css selector for putting it into a function. I can fetch some elements with xpath like this:
var complexXpath = "//*/div/a"; /* not the xpath, but an example here */
var element = mydriver.findElement(mywebdriver.By.xpath(complexXpath));
Is it possible to fetch now the css of that element, so I can use it into another javascript function that uses only css ? Something like
var b = element.getCSS();