嘗試點擊並選擇與水豚下拉菜單。但下拉是動態的,沒有硬編碼選項。到目前爲止,在我的嘗試中,我無法從中選擇任何選項。我試圖選擇下拉列表中的第一個或第二個值。的HTML是:嘗試點擊並選擇下拉菜單與水豚
<span class="dojoComboBoxOuter dj_gecko" _="whitespace and CR's between tags adds in FF" style="width: 400px;">
<input dojoattachpoint="comboBoxValue" value="" name="personSelect" tabindex="-1" style="display:none"></input>
<input dojoattachpoint="comboBoxSelectionValue" value="" name="personSelect_selected" tabindex="-1" style="display:none"></input>
<input class="dojoComboBox" type="text" dojoattachpoint="textInputNode" dojoattachevent="key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize;" autocomplete="off" style="width: 400px;"></input>
<img class="dojoComboBox" vspace="0" hspace="0" src="/ess/assets/static/dojo-0.4.3-custom-4.1.6/src/widget/templates/images/combo_box_arrow.png" dojoattachevent="onMouseUp: handleArrowClick; onResize;" dojoattachpoint="downArrowNode" style="width: 14px; height: 14px;"></img>
</span>
爲下拉的小箭頭是最後的IMG類,它被稱爲「combo_box_arrow.png」,試圖選擇,但沒有運氣。
想法?
你能發佈你的測試代碼嗎? –