I'm trying to select partially an element with xpath in my selenium code.
My xpath is
//iron-pages[@id='pages']//span[.='s8718216']
what I want is to select any element starting with s, the element just after span.
I tried this:
//iron-pages[starts-with(span[.='s'])
It doesn't work for me.
Can someone help me.
textstarting withs?