Select the first item from a drop down by index is not working. Unbound method select_by_index
For python
use:
from selenium.webdriver.support.select import Select
my_select = Select( driver.find_element_by_id("some_id") )
my_select.select_by_index(1)
I think you need to use select instead of Select on selecting by index like below (and also i hope need to use 0 for first option in java prospective)
select.select_by_index(1) # select the 1st item from the sort drop down
In Java generally i will use like this
Select oSelect = new Select(driver.findElement(By.id("myDropdown")));
oSelect.selectByIndex(0);