What\'s the correct XPath syntax to check if an option element is currently selected, or just to get the selected option
option
I think we can use a knowledge from @Mark's answer and account that. Let's just find a node which HAS desired attribute:
tree.xpath('//select/option[@selected]/text()')[0].strip()