exception found when set text value of text

Class library usage, coding and language questions.
hobli
Posts: 57
Joined: Thu Jul 30, 2009 1:15 am

exception found when set text value of text

Post by hobli » Mon May 24, 2010 9:06 am

Hi, ranorex team,

I am encountering this problem when I try to set textvalue of a text element in firefox form:

Ranorex.SetAttributeFailedException: Setting attribute 'text' failed on element '{Text:text area title}'

Pls look at the html file attached. I am using the following to code try to change the value of text area:

Code: Select all

Dim temp As ranorex.Text
temp = "/form[@title='tt - Mozilla Firefox']/container/element/container/text[@accessiblename='text area title']"
temp.TextValue = "aa"
additon information: I am using Ranorex 2.3.1

I can not use textareaTag.innerText due to an issue described in other post:
http://www.ranorex.com/forum/inner-text ... t1396.html.

thanks
Attachments
webElements.zip
sample html file
(867 Bytes) Downloaded 178 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: exception found when set text value of text

Post by Support Team » Tue May 25, 2010 5:01 pm

Hi,

Please don't use the form of Firefox to automate web elements, always use the DOM document which is provided from Ranorex. As I said in the other postings, the bug fix, which is delivered in Ranorex Service Release, will allow you to automate this controls in Firefox.

Regards,
Peter
Ranorex Support Team
.
Image