I'm facing a weird issue when I'm trying to query dom from the web using document.evaluate.
My Query as follows:
document.evaluate(
`//*[contains(text(),"USDC")]`,
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null
)
The following tag doesn't get queried because there's a two-line of string.
It works when I modify it to become one string. Any idea how can i solve this? Thanks in advance. Cheers 🍻