|
9#
楼主 |
发表于 2016-10-27 17:09:21
|
只看该作者
<select id="atomicevent_evnet_type" class="AE_FIELD" name="">
<option value="">请选择</option>
<option value="1">MobileNetwork</option>
<option value="2">SocialNetwork</option>
<option value="3">Billing</option>
<option value="4">CRM</option>
<option value="5">RTSS</option>
</select>
//设置事件来源
webTest.selectItem("2", "//*[@id='atomicevent_evnet_type']");
public void selectItem(String itemName,String xpath)
{
Select dropDownList = new Select(findElementByXpath(xpath));
dropDownList.selectByValue(itemName);
}
|
|