我必须从下拉框中选择值,但要选择需要鼠标悬停才能打开弹出窗口的值。
我正在使用 sendKeys("Body > Abdomen")。让我知道从下拉框中选择值的正确方法
在第二个下拉框的 HTML 代码之后:
<div id="bodypart_box_1">
<div style="position:absolute;left:185px;z-index: 20">
<ul class="parent">
<li>
<div id="main" class="mailval">events=Object { click=[1]}handle=function()
<input id="bodypart_1" class="bodypart error" type="text"
onfocus="if($(this).hasClass('disabled')){$(this).blur();}" readonly="readonly"
value="Select One" name="bodypart_1" title="">
<input id="actualBodypart_1" type="hidden" value="" name="actualBodypart_1">
</div>
<ul id="bodyPartList_1" class="top sub bodyPartList" style="display:
block;">olddisplay="block"
<li class="">
<div class="mailval fly" title="Body" originaltitle="Body">Body</div>events=Object {
click=[1], mouseover=[1]}handle=function()
<ul style="display: block;">olddisplay="block"
<li class="">
<div class="mailval " title="Body > Abdomen" originaltitle="Body >
Abdomen">Abdomen</div>events=Object { click=[1], mouseover=[1]}handle=function()
</li>
<li class="">