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.

Set Value in a textbox (SmartGWT)

sohel77sohel77 Members
edited November -1 in Sahi - Open Source
Hi there,

I am using Sahi V3 2010-11-05 with IE 7.0 on a smartGWT application

I am trying to create a User Account

_setValue(_textbox(0, _near(_label("User Name"))),"SahiBasicUser");
_setValue(_textbox(0, _near(_label("First Name"))),"Sahi");
_setValue(_textbox(0, _near(_label("Last Name"))),"User");
_setValue(_textbox(1, _near(_label("Middle Name"))),"Basic");
_setValue(_textbox(0, _near(_label("Email"))),"sahi.user@testemail.com");
_click(_cell("Save"));

The user is added successfully and then I have some other code that removes the user from the system so that I can run the script again

The script runs filne. But the problem is sometimes during Playback sahi enters the User Name one letter off form the right. Means instead of entering "SahiBasicUser" it enters
"SahiBasicUse" and my script failes when it tries to delete that because it does not find "SahiBasicUser"

This happend to me a couple of times on the other textbox too.

Any Idea?
Sign In or Register to comment.