How to track if svg tag present in the page?

the verifyElementPresent can track almost all available tags in source code, But in my case there is a svg image which unfortunately cannot be detected.

Code is something like below, “svg_tag” has only one property which is “tag” and it has value “svg”. I can also assure that page source do contain multiple svg tags, But still test it getting failed.

WebUI.verifyElementInViewport(findTestObject('Page_Dashboard/svg_tag'), 0)
2 Likes

Anyone can help with this? It also happens on mine and please help!

When you define svg_tag, you can try xpath with “//*[local-name() = ‘svg’]” and it should work when you run test. Will be failed on web spy though and looking forward for improvements.

Please have a look at this

1 Like