0
私はfirefoxでselenium2 webdriverを使用しています。はセレンのwebdriverを使用して特別なコンボボックスと対話します
通常、コンボボックスがある場合月私は別の月をsend_keys(monthname)
で設定しました。
私は今度は特別なリストボックスを持っていますが、私は単純にsend_keys()
にすることはできません(webdriverではなく、手動で)。私はウェブ開発者ではないので、実際の違いが何であるか分かりません。これは、そのコンボボックスのHTMLコードです:
<div class="selectArea marke" style="width: 75px; ">
<span class="left"></span>
<span class="center">Month</span>
<span class="selectButton"></span>
<div class="disabled" style="display: none; "></div>
</div>
<select name="sregisterdmc" id="sregisterdmc" class="marke outtaHere" style="width:75px" multiple="">
<option value="">Month</option>
<option value="01">01</option>
...more options...
</select>
ここでオプションを設定することはできません。私は.find_elements_by_tag_name()
ですべてのオプション値を得ることができますが、実際にはどのように設定したのか分かりませんでした。前もって感謝します!
ありがとうございました。私はちょうどコンボボックスをクリックしなければなりませんでした。 – naeg