﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30975	Replace get_select_option with Selenium's native select_by_value	Johannes Maron	nobody	"We have our own method called `django.contrib.admin.tests.AdminSeleniumTestCase.get_select_option` which does the very same thing as `selenium.webdriver.support.select.Select.select_by_value`.

We could replace it with something like:
{{{
def select_option(self, select_tag_css_selector, value):
    from selenium.webdriver.support.ui import Select

    select = Select(self.selenium.find_element_by_css_selector(select_tag_css_selector))
    select.select_by_value(value)
}}}

This would avoid looping over the DOM-tree as it's done in the current implementation.
Furthermore, it can avoid errors when a select-tag is outside the current viewport."	Cleanup/optimization	closed	Testing framework	dev	Normal	fixed	Selenium		Ready for checkin	1	0	0	0	0	0
