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.

Automation Issues with the lists ( dual Lists) using sahi!

venkatkrishnauvenkatkrishnau Members
edited November -1 in Sahi - Open Source
Hi all,
I'm automating some sahi scripts for my project which has built with GWT.
Here I'm seeing some problems when I'm dealing with List Boxes like when I'm trying to move selected items from the Availables side to Target Side. Please check with sample test sahi script as below! Added comments to the steps which are not performing.

_setValue(_textbox("user"), "rhqadmin");
_setValue(_password("password"), "rhqadmin");
_click(_cell("Login"));
_click(_link("Inventory"));
_click(_cell("Compatible Groups"));
_click(_cell("New"));
_setValue(_textbox("name"), "test comaptible groups");
_setValue(_textarea("description"), "Compatible Group Desc");
_click(_image("unchecked.png"));
_click(_cell("Next"));
_setValue(_textbox("search"), "rhq agent");
_click(_cell("RHQ Agent"));// It's not selecting the "RHQ Agent" from Available List
_click(_image("right_Over.png"));//Arrow ("right_Over.png") button is not clickable by script, especially while playback.
_click(_cell("Finish"));

Can you please look into above issue, let me know your suggestions/solutions on the same.

Thanks, Venkat

Comments

  • Try with this events

    _setSelected(_select(" "), "RHQ Agent");


    _click(_submit(" "));

    Thanks
    praveen Omkaram
  • Thanks for the quick response!
    I tried with your given suggestion, unfortunately those events not working for me.

    Even you can also give a try with the application, so please find the link below.
    //ec2-50-17-151-217.compute-1.amazonaws.com:7080/coregui/

    Please run the script against the application url which I mentioned above. So that you can guess what exactly happening over there.
    thanks for your time!

    Please add http prior to the link. As a new member, I can't give links.
    Venkat
  • Any more suggestions for us on this issue?
  • AmolAmol Members
    For handling droplist, 2 step mechanism must be used.
    First Click the drop down image as shown ib bracket ("V") , After clicking dropdown image then list will appear, now select your required option which will comes as Divlink or something else.
    Try by using this , it has worked for me.
  • narayannarayan Administrators
    Hi venkatkrishnau and michael01612,

    The website takes about 5 minutes to load because of a 29MB cache.html file. Is that how it is supposed to be? We are unable to test this out from our side. Let us set up an online meeting to fix it using desktop sharing.

    Regards,
    Narayan
  • Hi Venkat try this,it works for me.

    _highlight(_div("RHQ Agent"));

    _click(_image("right_Over.png")); //this will not be useful insted of this use below statement contains index number.

    or

    _click(_image(87));
  • narayannarayan Administrators
    Hi Praveen,
    Using an index will make the script brittle.
    Please use

    _click(_image("right.png"));
    instead of
    _click(_image("right_Over.png"));
    to make it work.

    Regards,
    Narayan
Sign In or Register to comment.