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.

Not Able To set Values for auto complete in grid

yogiraneyogirane Members
edited November -1 in Sahi - Open Source
I am trying to set value for field in grid which is auto complete,
For 1st row value sets perfectly but from 2nd row same value not sets.

_popup("VLP")._click(_row("1"));
_popup("VLP")._setValue(_textbox("VendorName[1]"), "Shruti Art Pvt");
_popup("VLP")._click(_listItem("Shruti Art Pvt. Ltd"));

_popup("VLP")._click(_row("2"));
_popup("VLP")._setValue(_textbox("VendorName[1]"), "Shruti Art Pvt");
_popup("VLP")._click(_listItem("Shruti Art Pvt. Ltd"));

pls. suggest

Comments

  • Hi

    I doubt there is a _textbox("VendorName[1]" in the second row

    change your script to this:
    _popup("VLP")._click(_row("1"));
    _popup("VLP")._setValue(_textbox("/VendorName/", _in(_row("1"))), "Shruti Art Pvt");
    _popup("VLP")._click(_listItem("Shruti Art Pvt. Ltd"));
    _popup("VLP")._click(_row("2"));
    _popup("VLP")._setValue(_textbox("/VendorName/", _in(_row("2"))), "Shruti Art Pvt");
    _popup("VLP")._click(_listItem("Shruti Art Pvt. Ltd"));
    
Sign In or Register to comment.