title: How to get second attribute level with Selenium's xpath
body: <p>I'm trying to check in Selenium if an element has a green border or not.</p>
  
  <p>i can use <code>//div[@id="target"]/@style</code> to get the parsed style string applied... and use string search to search for the border... i have to work around some brosers showing the shorthand (<code>border: solid 3px green</code>) and other showing the expanded (<code>border-style: solid; border-color: green....</code>) ...but how could i do that more cleanly?</p>
  
  <p>ideally something like: <code>//div[@id="target"]/@style.borderColor</code></p>
  
  <p>I also would like to avoid using the <code>contains</code> selector because the syntax is awful. But if it's the only way, so be it. of course.</p>