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.

Issue to select specific combo box in a row

Debakanta sahuDebakanta sahu Members
edited November -1 in Sahi - Open Source
Hi,

I have 2 combo box on a row
and takes id's as
_f("abc").combobox(5)
_f("abc").combobox(6)

I want to select item's from combobox(6)
for this i use below codes

function chkcombo_pageNavigator()
{

for(var $value=1;$value<=_f("abc").combobox(6).length;$value++)
{
_setSelected(_f("abc").combobox(6), $value);
_wait(4000);
}
}


but it always work on combobox(5).as it is the 1st one on the row.

Regards,
Debakanta

Comments

  • Hi Debakanta sahu,

    Do you want to select all the element's in the Combo box?

    Try the following code,
    _setSelected(_f("abc").combobox(5),"Option to be selected");
    _setSelected(_f("abc").combobox(6),"Option to be selected");
    

    The option's should be selected.This might help you.

    Regards,
    Theeran.
Sign In or Register to comment.