18 January 2026:


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.

How to get all divs from a combo?

gligogligo Members
edited November -1 in Sahi - Open Source
I have such a combo
<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 get all options (none, yes and no into an array) or at least the first one into a variable.
Can you help me how can I do this?

Thank you!

Comments

Sign In or Register to comment.