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.

JSERROR TypeError Cannot find Function _getText

aspatel80aspatel80 Members
edited February 2009 in Sahi - Open Source
Hello Team,

I am new to SAHI. Today I have created the following script:

....some code
var $test123;
$test123 = _getText(_byId("element id"));
...some code
when I am using the _getText function, It gives me the following error:

JSERROR TypeError Cannot find function _getText at Feb 5, 2009 12:46:41 PM

Please guide me what to do? Is this any configuration related issue or what?

Comments

  • Hi,

    I cant figure out any mistakes in the script except a missing semi-colon after the variable declaration.(the first line var $test123).
    Any more information on the error?

    Regards,
    Pankaj .
  • I believe this statement

    $test123 = _getText(_byId("ctl00\_Main\_ContentPlaceHolder1\_ucPartyType\_tbPartyTypeName"));

    should be

    _set($test123, _getText(_byId("ctl00\_Main\_ContentPlaceHolder1\_ucPartyType\_tbPartyTypeName"));
  • Ya try using it. We will need this when we are dealing with the page's DOM.
Sign In or Register to comment.