My task is to ckoose one of dropdown elements.
My HTML is:
<td>
<select name="subtract">
<option selected="selected" value="1">Да</option>
<option value="0">Нет</option>
</select>
</td>
My code is:
>>>selectbox = ff.find_element_by_name("subtract")
>>>print (selectbox.text)
Да
Нет
>>>print(Select(selectbox).options)
[<selenium.webdriver.remote.webelement.WebElement object at 0x00000000037992E8>, <selenium.webdriver.remote.webelement.WebElement object at 0x0000000003799278>]
>>>print(Select(selectbox).select_by_index(0))
None
>>>print(Select(selectbox).select_by_value('0'))
None
>>>print(Select(selectbox).select_by_visible_text('Нет'))
None
So I really can't find where I am wrong?