def is_option_value_selected(browser_query, value):
 select = Select(browser_query.first.results[0])
 ddl_selected_value = select.first_selected_option.get_attribute('value')
 return (ddl_selected_value == value)

def is_option_value_selected ( browser_query , value ) : select = Select ( browser_query . first . results [ 0 ] ) ddl_selected_value = select . first_selected_option . get_attribute ( 'value' ) return ( ddl_selected_value == value )
return true if given value is selected in html select element .