Element.get_selected#

Element.get_selected() Element[source]#

Gets the selected option of the HTML element <select>.

This method is used for <select> elements only.

Returns:

  • Element – If it has a selected option.

  • None – If it does not have a selected option.