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.

Unable to record from Rich Text Control (REC)

abdulabdul Members
edited November -1 in Sahi - Open Source
Hi,

I am unable to record and play the content provided in (REC)
when I try to record content from REC text area sahi script is not generating script for the content provided in (REC)
when I Play back the recorded content it get fail for (REC)

Can some one plz help me in this regard.

Thanks,
Abdulk

Comments

  • narayannarayan Administrators
    Sahi's recorder does not recognize rich text editors. (RTE as they are also called)
    But it is possible to write to them using _rteWrite(_rte(iframeId), text);

    Generally RTE are iframes in editable mode. If you find the id/name of the iframe, you can use _rteWrite(_rte(iframeId), text).

    If there is any element near that RTE, like say a link "My Link", you can use _rte(0, _near(_link("My Link"))), which makes it something like:

    _rteWrite(_rte(0, _near(_link("My Link"))), "Hi there")
  • abdulabdul Members
    Thanks Narayan,

    Ur solution resolve my problem thanks for guiding.

    Thanks,
    Abdul Khalik
This discussion has been closed.