如何使用Selenium IDE从下拉列表中选择项目?

时间:2016-03-02 08:13:01

标签: html selenium dropdown

如何从下拉列表中进行选择?

这是html代码

<span class="select2-dropdown select2-dropdown--above" dir="ltr" style="width: 355px;">

<span class="select2-search select2-search--dropdown">

<span class="select2-results">

<ul id="select2-31B9AC3E-5CBC-4FB3-83FF-951A88645FC9-results" class="select2-results__options" role="tree" aria-expanded="true" aria-hidden="false">

<li id="select2-31B9AC3E-5CBC-4FB3-83FF-951A88645FC9-result-98l8-11222" class="select2-results__option" role="treeitem" aria-selected="false">Darbo partija</li>

<li id="select2-31B9AC3E-5CBC-4FB3-83FF-951A88645FC9-result-tyqm-11156" class="select2-results__option" role="treeitem" aria-selected="false">Demokratinė darbo ir vienybės partija</li>

0 个答案:

没有答案