XPath testing that string ends with substring?
XPath 2.0
//div[ends-with(@tagname, 'Destination')]
XPath 1.0
//div[substring(@tagname, string-length(@tagname)
- string-length('Destination') + 1) = 'Destination']
You can use ends-with
(Xpath 2.0)
//div[ends-with(@tagname, 'Destination')]