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.

AutoComplete feature is not recording in SAHI

raosgmraosgm Members
edited November -1 in Sahi - Open Source
I have a scenario where in i need to type first character the list populates(DROP DOWN) when i record the shai is neither capturing the list nor the selected data from the list.


Pls helP its very much required !!!

OS-Windows XP sp3
Browser--IE8
Build:3.5

Regards,
Madhu

Comments

  • TheeranTheeran Members
    Hi Raosgm,

    Try with the following,
    _setValue(_textbox("textboxId"), "anyString");
    _setSelected(_select("selectId"), "optionValue");
    _click(_option( "optionValue"));
    

    This might help you.

    Regards,
    Theeran.
  • raosgmraosgm Members
    Thank you Theeran,

    Now it is displaying the list but by default it is selecting the first name in that list.I'm confused over the option value.Could you explain a bit . I think i'm doing mistake in the option command.

    Eg:
    _setValue(_textbox("txroleId"), "R");
    _setSelected(_select("selectid"), "7");
    _click(_option( "7"));

    In the above piece of code. I want to select the name as robert which is in the 5th place. but sahi is selecting the first name i.e ram.

    Could you help on this please.

    Regards:
    Madhu
  • TheeranTheeran Members
    Hi Raosgm,

    Try with the option value, it worked for me.

    Thanks,
    Theeran.
  • raosgmraosgm Members
    Hi Theeran,
    Could you elaborate .I really appreciate if you do..

    Thanks in advance.
    Madhu
Sign In or Register to comment.