Issue with Extracting Selected Option Text from Dropdown Menu

Hi there,

I hope this message finds you well. I'm currently encountering an issue while trying to extract the text of the selected option from a dropdown menu using Open Web Scraper.

The HTML structure I'm dealing with is as follows:

I've attempted various methods, including using CSS selectors like select#bureau option[selected], but unfortunately, I'm not able to isolate and extract only the text of the selected option (here "55 rue du web - étage 1 - bureaux - 54000 NANCY"). Instead, I retrieve the entire list of options within the dropdown menu.

Could you kindly provide guidance or suggest an alternative approach to accurately capture only the text of the selected option using Open Web Scraper?

Any assistance or insights you could offer on this matter would be greatly appreciated.

Thank you for your time and support.

Best regards,


The :checked selector will probably work, or you can try to match the relevant selected option:

Ref: CSS :checked Selector

Thx ! It's working well

1 Like