Micro Focus QTP (UFT) Forums
how do I use to get text area? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how do I use to get text area? (/Thread-how-do-I-use-to-get-text-area)



how do I use to get text area? - tranthu991 - 10-21-2009

I am a beginner in QT. I used to use winrunner but in QT is hard to use get text area. What command and how do I get the coordinate. Please advise. Thanks


RE: how do I use to get text area? - jsknight1969 - 10-22-2009

did you try .GetVisibleText() ? i don't remember if that is an option for a Textarea object, but I have used it other objects to get the full text.


RE: how do I use to get text area? - venkatbatchu - 10-22-2009

Hi ,
You can use the.GetRoProperty("value") to fetch the value from the textarea

Sorry that was to fetch the value in text arer , your query is related to fetch the coordinates of the text area
Code:
.GetRoProperty("x")--x coordinate x1
.GetRoProperty("y")--y coordinate y1
.GetRoProperty("width")---
.GetRoProperty("height")---
x2=x1+width
y2=y
x3=x1
y3=y1+height
x4=x2
y4=y3

find the attached document


RE: how do I use to get text area? - basanth27 - 10-22-2009

Text Area is bit blant. There are 2 ways,

1. Text Area checkpoint.
2. Spy on the object, go to the TO Properties and see which property holds the text ( if your text area means that ). Use GetRoProperty("property_name") to retrieve the text.
3. GetVisibleText if available as a method can be used. This is majorly available for .Net based objects, however, if it is available for web objects then you should be able to use it.