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 can i search a particular word from a paragraph using SAHI??

soumi1111soumi1111 Members
edited January 2013 in Sahi - Open Source
I need to search for a specific word from a paragraph (a column in the database having a long string value)
I am using :
_assertContainsText("My nami is :", $rscom[0] ["L_CONTENT_TEXT"]);

where :L_CONTENT_TEXT is the name of a column in database and rscom is a row.

But I am getting "TypeError: orig is undefined" error.

Kindly help

Answers

  • Hi Soumi,

    Try with the below syntax:

    _assertContainsText("Sample text", document.body);

    Good Luck!!
  • Hi Umashankar,

    Thanks for your reply but i Have already tried this. This is not working.
    As I am not searching the word from any document but from a column in the database.
    That column contains a long set of strings(paragraph).

    Regards
    Soumi
Sign In or Register to comment.