I need to select any child element of SVG component, it can be rect, text, defs etc.
I am trying it with playwright. I tried this
const elementsCount = await page.locator("//*[local-name()='svg']").count()
console.log("Elements count = " + elementsCount)
and I get elementsCount 0. Same result when I replace local-name with name.
In Cypress I am trying something as
cy.get('svg', { timeout: 10000 }).find('text').eq(0).click()
However I get error:
Expected to find element: svg,but never found it.
I attached screenshot with DOM. Any advice how to select children of SVG? I am wondering does line "#document# before SVG tag have impact on the query?
