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 multiple items from list

AkhilsAkhils Members
edited November -1 in Sahi - Open Source
How to select multiple items from list

I have one list with contains Restricted, Performance etc...

For selecting one we are using following code:
_setSelected(_select("ltipTypeIds"), "Restricted");

for another one selecting, Iam writing same with another name but both are not selecting.
I am using like,

_setSelected(_select("ltipTypeIds"), "Restricted");
_setSelected(_select("ltipTypeIds"), "Performance");

Any body help me out....

Comments

  • pankaj.nithpankaj.nith Members
    edited March 2009
    Hi Akhil,

    Try this:
    _setSelected(_select("ltipTypeIds"), "Restricted");
    _setSelected(_select("ltipTypeIds"), "Performance", true);
    _setSelected(_select("ltipTypeIds"), "xyz", true);//if you want to select more options where "xyz" is one of the avaiable options
    _setSelected(_select("ltipTypeIds"), "abc", true);

    for further details see:
    http://sahi.co.in/w/_setselected

    Regards,
    Pankaj.
  • AkhilsAkhils Members
    Thanks pankaj.....Its working :)
Sign In or Register to comment.