18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
selecting div in a combo list?
Hello,
I want to select one option from a combo list, where the options are divs. With _click(_div("yes")); works, but I want to specified exaclty which combo should i set, because it can be so, that more combos with same values appears...I dont want to use indexes [4], but anything with _near for ex.
_near(_label("Test:"))..or another way to specify the exact combo I need..but it does not find it...
The combo list looks like this:
<div id="ext-gen906" class="x-layer x-combo-list " style="position: absolute; z-index: 12005; visibility: visible; left: 117px; top: 521px; width: 158px; height: 60px; font-size: 12px;">
<div id="ext-gen907" class="x-combo-list-inner" style="width: 158px; height: 60px;">
<div class="x-combo-list-item ">none</div>
<div class="x-combo-list-item ">yes</div>
<div class="x-combo-list-item x-combo-selected">no</div>
</div>
</div>
I want to select one option from a combo list, where the options are divs. With _click(_div("yes")); works, but I want to specified exaclty which combo should i set, because it can be so, that more combos with same values appears...I dont want to use indexes [4], but anything with _near for ex.
_near(_label("Test:"))..or another way to specify the exact combo I need..but it does not find it...
The combo list looks like this:
<div id="ext-gen906" class="x-layer x-combo-list " style="position: absolute; z-index: 12005; visibility: visible; left: 117px; top: 521px; width: 158px; height: 60px; font-size: 12px;">
<div id="ext-gen907" class="x-combo-list-inner" style="width: 158px; height: 60px;">
<div class="x-combo-list-item ">none</div>
<div class="x-combo-list-item ">yes</div>
<div class="x-combo-list-item x-combo-selected">no</div>
</div>
</div>
This discussion has been closed.
Comments
_div("yes", _in(_div("/x-combo-list/", _near(_label("Test:")))))
With _div("yes", _in(_div("/x-combo-list/"))) only, the element also is undefined
Regards,
Narayan
By the way, can I ask about how is going with the Flex support?
Many, many thanks!