Forum Discussion

vasanthamsri's avatar
vasanthamsri
New Contributor
11 years ago

Read SVG font and Colors



Hi,



In my project i have a scenario to verify the SVG font and colours used in each node.



My graph has almost 10 nodes.



Each node has different color.



Can some one please help me to read the font and colour.

2 Replies

  • It depends on how these properties are set: using SVG attributes or CSS.

    Can you post here some sample SVG code that you are testing?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Vasantham,


     


    Please pay attention to the following:


     - only inline SVG is supported;


     - SVG files that are opened directly in web browsers (for example, http://www.example.com/file.svg) are not supported;


     - SVG content embedded using OBJECT and EMBED elements is not supported;


     - SVG text elements are identified as TextNode objects;


     - other SVG content elements (rect, circle and so on) are not identified as individual test objects. However, you can access them from tests using native DOM methods, for example, getElementById, getElementsByTagName, and so on.