2016-04-19 30 views
0

Selenium IDEで複数の要素を選択するには、Ctrlキーを押した後にユーザーが選択する必要がありますか?Selenium IDEの複数要素選択機能のキーボードショートカットとは何ですか?

この機能にはどのコマンドが使用されていますか?

+0

あなたが求めているものを明確ではないが、してみてくださいそれについてもっと詳しく説明する – Dee

+0

私は、ユーザーがマルチ選択フィールドを実行しようとしていると仮定しますか? herEのように:http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html – DMart

答えて

0

(selectコマンドとの組み合わせで)addSelectionを使用してみてください:

<tr> 
    <td>select</td> 
    <td>//select[@name='toppings']</td> 
    <td>olives</td> 
</tr> 
<tr> 
    <td>addSelection</td> 
    <td>//select[@name='toppings']</td> 
    <td>mushrooms</td> 
</tr> 

この例http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html上のHTMLスニペットで動作します:

<select name="toppings" multiple="multiple" size="5" id="dougtest" style="background-color: rgb(255, 255, 255);"><option value="mushrooms">mushrooms 
</option><option value="greenpeppers">green peppers 
</option><option value="onions">onions 
</option><option value="tomatoes">tomatoes 
</option><option value="olives">olives 
</option></select> 
関連する問題