By default straight forward XPath to SVG primitives will not work. So XPath ending like .../svg[2]/path will fail. Here is a workaround.
One of the more challenging types of web application is that with uses of embedded SVG (Scalable Vector Graphics) in additional to HTML DOM elements. This article describes how to use Rapise to write automated testing scripts for such applications.