I have a DOM element with the following unique attribute
ui-sref=".carts.cart({type:'agent'})"
so I need to define a XPath for Selenium to find this element.
I can use
//li[contains(@ui-sref,"carts") and contains(@ui-sref,"agent")]
and it works fine.
Can I use something like
//li[contains(@ui-sref,"carts"*"agent")