Page 1 of 1

inner text of textarea in firefox wrong

Posted: Mon May 24, 2010 8:02 am
by hobli
Hi, ranorex team,

I am implementing code to retrieve "text" user input into textarea in html in real time:
html code:

Code: Select all

<textarea cols=20 rows=4 title="text area title" name="text area name" value="text area value" id="editboxArea">default line1</textarea>
after user input text "user text" in to this textarea, ranorex spy still show the innertext attribute of this textareaTag is "default line1", while if repeat the same step with IE, ranorex spy can find out the correct value of innertext in real time.

is this a problem with Ranorex? if not, can you please give me a sample code to retrieve text from textareaTag with FireFox in real time?

thanks a lot


Addtional information:
I am using Ranorex 2.3.1

Found with firefox only:
When try to change the innertext:
dim txtArea as textareaTag = <rxpath>
txtArea.innerText = "user text"

the attribute of 'innertext' does not change

Re: inner text of textarea in firefox wrong

Posted: Tue May 25, 2010 3:07 pm
by Support Team
Hi,
hobli wrote:is this a problem with Ranorex? if not, can you please give me a sample code to retrieve text from textareaTag with FireFox in real time?
You posted following http://www.ranorex.com/forum/how-to-get ... t1385.html
The bug fix in this posting refers also to this error and is delivered with the next service release. At the moment it works only with Internet Explorer.

But instead of InnerText please use TagValue property of the Element. InnerText will be set to ReadOnly in Ranorex 3.0.

Thank you for posting,

Regards,
Peter
Ranorex Support Team

Re: inner text of textarea in firefox wrong

Posted: Wed May 26, 2010 3:16 am
by hobli
Hi, ranorex support team,

thanks for reminding. I will change the code.