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 value from input id tag

LaxshmiVijayLaxshmiVijay Members
edited November -1 in Sahi - Open Source
Hi

I am really struggling to get this value from almost one week. Following is the HTML code :

<td>

<div class="ui-picklist-caption ui-widget-header ui-corner-tl ui-corner-tr">Available</div>
<ul class="ui-widget-content ui-picklist-list ui-picklist-source ui-corner-bl ui-corner-br ui-sortable">

<input id="keypagesform:keypagespicklist_source" type="hidden" value="1 : Trading Test Page" name="keypagesform:keypagespicklist_source">

</td>

Can anybody please suggest me how can I get the value from input id. I would like to fetch "1 : Trading Test Page"

Comments

  • Hi

    My problem got resolved by following :

    _byClassName("ui-widget-content ui-picklist-list ui-picklist-source ui-corner-bl ui-corner-br ui-sortable","ul").textContent;
This discussion has been closed.