I would like to get text displayed on previously selected option on the list. HTML for this list looks like this
getText and getAttribute methods doesn’t give me the text. Any ideas?
Maybe someone will be interested:
getAttribute (value) gave me value (‘662996’)
I’ve created object with xpath=${xpath}
${xpath} = //select[@name=‘S_Id’]/option[@value=value]
Now getText gave me the text which is mapped with value.