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.

setSelected in Java

dlohithdlohith Members
edited November -1 in Sahi - Open Source
Narayan,

Could you please let us know setSelected function equivalent in java method , is it exposed as different name?

Thanks
Lohith

Comments

  • Narayan,

    I got the function name - choose ,

    Its different from the recorded javascript


    //Java code
    browser.choose(browser.select("SERV_TEMPLATE_ID"), "Bookmark");

    Regards,
    Lohith
  • narayannarayan Administrators
    Lohith,

    Please set controller.mode=java in sahi.properties, so that you can easily record in Java style.
    You will need to restart Sahi after that change.

    Regards,
    Narayan
  • Narayan,

    Yes this option would help me to automate much faster

    Thanks,
    Lohith
This discussion has been closed.