BUG: GetAttributeTextValue() on Java element

Bug reports.
krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

BUG: GetAttributeTextValue() on Java element

Post by krstcs » Mon Aug 31, 2015 2:17 pm

Ranorex 5.4.1
Windows 7 Pro
Java 1.7.0_80

Using GetAttributeTextValue() on a Java element returns a string containing "[Java Object]" instead of the actual text value of the object. I've had to re-code several modules to use GetAttributeValue().ToString(), which does work.

This worked correctly in 5.3.2, but changed in 5.4.1 (I don't know about 5.4.0).
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: BUG: GetAttributeTextValue() on Java element

Post by Support Team » Tue Sep 01, 2015 10:04 pm

This is essentially the same bug as described in this forum thread:
http://www.ranorex.com/forum/does-not-m ... tml#p33969

The Element.GetAttributeValueText method just converts the attribute value to a string, which is broken for Java objects in 5.4.0 and 5.4.1.

Sorry for the inconveniences! We will definitely fix the issue with the upcoming service release 5.4.2.

Regards,
Alex
Ranorex Team