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.

get drop down values from list in table

mrmitchmrmitch Members
edited December 2019 in Sahi - Open Source
New to Sahi - we have dropdowns that have been created as lists in tables. I'm a little lost on how to get the dropdown values and the selected value. There are two dropdowns in this table. I just noticed the ClientState id's when I pasted this. I may be bale to use those.


<table id="ctl00_pCASOnlineContent_SaveSearchGridView" class="general-DLG">
<tr>
<td style="left: 370px; top: 6px; position: absolute; z-index: 1000;">
Saved Search
</td>
<td style="left: 440px; top: 1.5px; position: absolute; z-index: 1000;">
<div id="ctl00_pCASOnlineContent_SavedSearchesDDList" tabindex="80" class="RadDropDownList RadDropDownList_MyDropDownList" style="width:150px;">
<span class="rddlInner"><span class="rddlFakeInput">Test This Month</span><span class="rddlSelect"><span class="p-icon p-i-arrow-60-down"></span></span></span><div class="rddlSlide" id="ctl00_pCASOnlineContent_SavedSearchesDDList_DropDown" style="display:none;">
<div class="rddlPopup rddlPopup_MyDropDownList">
<ul class="rddlList">
<li class="rddlItem rddlItemSelected">Test This Month</li>
</ul>
</div>
</div><input id="ctl00_pCASOnlineContent_SavedSearchesDDList_ClientState" name="ctl00_pCASOnlineContent_SavedSearchesDDList_ClientState" type="hidden" />
</div>
</td>
<td style="left: 630px; top: 6px; position: absolute; z-index: 1000;">
View
</td>
<td style="left: 660px; top: 1.5px; position: absolute; z-index: 1000;">
<div id="ctl00_pCASOnlineContent_GridViewsDDList" tabindex="81" class="RadDropDownList RadDropDownList_MyDropDownList" style="width:150px;">
<span class="rddlInner"><span class="rddlFakeInput">STANDARD</span><span class="rddlSelect"><span class="p-icon p-i-arrow-60-down"></span></span></span><div class="rddlSlide" id="ctl00_pCASOnlineContent_GridViewsDDList_DropDown" style="display:none;">
<div class="rddlPopup rddlPopup_MyDropDownList">
<ul class="rddlList">
<li class="rddlItem">STATUS</li><li class="rddlItem">BILLING</li><li class="rddlItem rddlItemSelected">STANDARD</li><li class="rddlItem">PICKUP_REPORT</li><li class="rddlItem">RDLY_REPORT</li><li class="rddlItem">VESSEL</li><li class="rddlItem">STATUS-VESSEL</li>
</ul>
</div>
</div><input id="ctl00_pCASOnlineContent_GridViewsDDList_ClientState" name="ctl00_pCASOnlineContent_GridViewsDDList_ClientState" type="hidden" />
</div>
</td>
</tr>
</table>
Sign In or Register to comment.