Issue
Here is the HTML code, i'm trying to select 'select customer' drop-down.
<div id="createTasksPopup_customerSelector" class="customerOrProjectSelector selectorWithPlaceholderContainer at-dropdown-list-btn-ct notSelected">
<table id="ext-comp-1057" class="x-btn-wrap x-btn at-dropdown-list-btn x-btn-over x-btn-focus" cellspacing="0" cellpadding="0" border="0" style="width: auto;">
<tbody>
<tr id="ext-gen397" class=" x-btn-with-menu">
<td class="x-btn-left">
<td class="x-btn-center">
<em unselectable="on">
<button id="ext-gen391" class="x-btn-text" type="button">- Select Customer -</button>
</em>
</td>
<td class="x-btn-right">
</tr>
</tbody>
</table>
</div>
Image -
Solution
This exception generally occurs when we use Select command to select dropdowns which are not built by using "select" tag.
You can try by using sendkeys to select dropdown, just give displayed text of option in sendkeys.
If above does not work, then go for click on dropdown and again click on required option.
If it is auto complete dropdown, then click on that dropdown input box and go for senkeys char by char with small sleep, so that required option will be displayed.
Answered By - murali selenium
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.