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.

How to get value displayed in TextField / Text Area?

aspatel80aspatel80 Members
edited November -1 in Sahi - Open Source
Hello Team,

I am new to Sahi. In my web page there are two controls TextBox and TextArea and I want to get the value from TextBox and TextArea and want to stroe in a variable so I can use later on in programming. Please help me.

Thanks,

Ashvin Patel

Comments

  • pankaj.nithpankaj.nith Members
    edited February 2009
    hi,

    Use:
    var $x = _textbox("ID").value;
    var $y = _textarea("ID").value;


    Regards,
    Pankaj.
  • narayannarayan Administrators
    Rather, use,
    var $x, $y;
    _set($x, _textbox("ID").value);
    _set($y, _textarea("ID").value);
    _log($x);
    _log($y);
    
  • Hello Narayan,

    The solution you have given is perfectly fine. Thanks a lot.

    Ashvin
Sign In or Register to comment.