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 write into Rich Text Area

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

In our application there are few text areas which sahi does not detects
The backend code uses some JavaScript library to format the text within the text areas.. It generates and stores html tags within the content of the textarea and it is not an Iframe.

We tried using _rteWrite(_rte(0), "text") and though it places the text in that text area, our application is not recognizing the notes entered. But when we place the mouse pointer into the text area then its working fine.

Can someone suggest what needs to be done.

Thank you

Regards,
Bhavitha

Comments

  • narayannarayan Administrators
    Try:

    _focus(_rte(0))
    _rteWrite(_rte(0), "text")

    or

    _rteWrite(_rte(0), "text")
    _focus(_rte(0))

    and see. If not use
    _click instead of _focus.

    Regards,
    Narayan
  • Hi Narayan,

    I tried with both _focus and _click, but it did not work

    when i tried using _rteText() to read contents, the log showed error as :_sahi.setServerVar('___lastValue___1295521931507', _rteText());
    TypeError: 'this.iframeFromStr(...).contentWindow' is null or not an object
  • narayannarayan Administrators
    Hi Bhavitha,

    Can you point us to a sample page where we can check and rectify this?

    How are you using _rteText?

    Regards,
    Narayan
Sign In or Register to comment.