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 select one by one from the list box

edited November -1 in Sahi - Open Source
select delivery area...
i have list box in that i can select any area



iam using this code......

var $a=_collect("_link", "/./", _in(_div("area-filter filter-section")));

for ($i = 0 ; $i<_select("del_location").options.length; $i++){

_log(_select("area-select").options[$i].text);
}

inspect element:--
<legend>Select Delivery Area</legend>
<select id="del_location" class="area-select">

Comments

  • for ($i = 0 ; $i<_select("del_location").options.length; $i++){

    _setSelected(_select("area-select"), $i));
    }
Sign In or Register to comment.