I have a xpath like
//*[name()='svg' and contains(@data-type,'CHASSIS')]
This will lead to below html
Basically I want to search for the string “NCS-4202” and “Front” without specifying any attribute.
How can I do the search ?
I tried with
//*[name()='svg' and contains(@data-type,'CHASSIS') and contains(., 'Front')]
but had no luck. It failed to search for any xpaths.