exception found when set text value of text : Automation API

exception found when set text value of text

Class library usage, coding and language questions.

exception found when set text value of text

Postby hobli » Mon May 24, 2010 10: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-of-textarea-in-firefox-wrong-t1396.html.

thanks
Attachments
webElements.zip
sample html file
(867 Bytes) Downloaded 27 times
hobli
 
Posts: 57
Joined: Thu Jul 30, 2009 2:15 am

Re: exception found when set text value of text

Postby Support Team » Tue May 25, 2010 6: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
User avatar
Support Team
Site Admin
 
Posts: 4841
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 1 guest