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.

Under and setSelected

gopikannangopikannan Members
edited November -1 in Sahi - Open Source
Hi All,

I have to select in My dropdown box as - > _setSelected(_select("mdd[21]"), "F");

dropdown is available under _bold("NebuSal"))..

How can i select the dropdown mdd[21] under nebusal..

I tried many ways, but unable to gone through.. Kindly help me someone.

Thanks
Gopi

Comments

  • Hello Gopi,
    Jus try this code

    _setSelected((_select("mdd[21]"), "F"), _under(_bold("NebuSal")));
  • Hi Arunbala,

    Thanks for your reply...

    I tried your code, but it is not selecting F in dropdown.

    instead of _bold("NebuSal") , i tried

    _cell("NebuSal (sodium chloride) [Add Note/Alert] | [Add/Delete Therapeutic Interchange]")

    both the ways were not helpful,

    kindly provide me some other suggestion.

    Thanks
    Gopi
  • Hi Gopi,
    You can also use _near.
  • TheeranTheeran Members
    Hi Gopi,

    Try with

    _setSelected(_select("mdd[21]",_under(_bold("Combobox"))),"F");

    This might help you.

    Thanks,

    Regards,
    Theeran.
Sign In or Register to comment.