API …
Web elements

SVG elements

Interactive SVG shapes and text. Locators behave differently inside <svg>; learn the namespace gotchas.

Practice tasks

  • Click each circle and assert the label.
  • Locate shapes via CSS (svg circle) and XPath using local-name().
  • Assert the rect fill attribute changes on click.
  • Read the <text> content.

More Web elements practice