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.

check with the list box contents

adsads Members
edited November -1 in Sahi - Open Source
Hi,

Can anybody tell me how to check with the contents available in the list box for selection.

eg: in a Language dropdown contaning 5 languages.Check with what all are present in the drop

down.

Comments

  • narayannarayan Administrators
    You can do

    _assertExists(_option(_select("languages"), "English"));
  • adsads Members
    Yes it worked out fine...I tried with

    _assertExists(_option(_select("site"), ('English','Chinese','French')));

    Thanks Narayan ...
Sign In or Register to comment.