Jump to content
Sign in to follow this  

Overwriting TextArea on a web page

Recommended Posts

I only discovered AutoIT 24 hours ago and already I have made some great progress. But I have hit an issue which I think should work (and advice on this forum says it should) but it doesn't work for me.

Probably something very simple but I can't get it to work.

I navigate (successfully) to a web page and do a few things. Then I want to completely overwrite the (html) text in a text area.

On the web page the text area is defined:-

<textarea id="description" name="description" rows="20" class="rteIfm" title="Description" style="visibility: hidden; display: none; "><LOTS OF HTML TEXT></textarea>


Here is the code I have written:-

Local $oFormText = _IEGetObjByName($oIE, "Selling")

Local $oIEText = _IEFormElementGetObjByName($oFormText, "description")


_IEFormElementSetValue($oIEText, "SOME DIFFERENT HTML TEXT")

When I run this the MsgBox displays the correct value (LOTS OF HTML TEXT) but after the _IEFormElementSetValue nothing has changed on the screen - it still displays the old value???

Share this post

Link to post
Share on other sites

Well apparently, it does work. The change was not visible on the screen as I was watching the AutoIt script do its thing, but after changing the text I moved on and found and clicked the "Continue" button on the website and after obeying this the next screen showed that the text had indeed been updated.

So I should have had more faith and carried on....

Ho hum - solved my own problem :-)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...