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.

Input box in sahi

aakash_1983aakash_1983 Members
edited November -1 in Sahi - Open Source
Hi All,

Can i have something like input box in VB where we can enter some user's text and get it inot a variable the way it happenes in VB or java.

Please help,

Thanks and Regards,
Aakash

Comments

  • any updates on this ??
  • is it possible ?
  • narayannarayan Administrators
    Try with _prompt.
    var $x = _prompt("Enter value");
    _setValue(_textbox("user"), $x);
    
  • Hi Narayan,

    Thanks for your reply.

    I tried with the below given code.

    var $xx = _prompt("Enter value");
    _setValue(_textbox("user"), $xx);
    _alert($xx);

    but in the alert box iam getting result as "null" i dont know why it is happening.Few times i have observer the same code returns the correct value in the alert box.

    Below is the logs result that iam getting :

    _sahi.setServerVar('___lastValue___1347895242406', _prompt("Enter value"));
    [auto] at Sep 17, 2012 8:50:45 PM
    _alert(null);



    Please help.

    Thanks and Regards,
    Aakash
Sign In or Register to comment.