I have to write tests for a web site. I am trying to get the selected value of a dropdown box. So far i can get the contents of the dropdown by doing
find_f
Very simple way to get value of selected option is:
find("#restrictions__rating_movies").value
This will return selected select option value.