标签:
html 代码:
<select name="ColumnId" id="columnOrd"> <option value="2">选项1</option> <option value="3">选项2</option> <option value="4">选项3</option> <option value="9">选项4</option> <option value="10">选项5</option> <option value="20">选项6</option> </select>
选择下拉列表第1个:选项1
from selenium.webdriver.support.ui import Select
Select(driver.find_element_by_id("columnOrd")).select_by_visible_text(u"选项1")
标签:
原文地址:http://www.cnblogs.com/nzyjlr/p/4444776.html