Micro Focus QTP (UFT) Forums
How can I check Roproperty of a specific object type from a form? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How can I check Roproperty of a specific object type from a form? (/Thread-How-can-I-check-Roproperty-of-a-specific-object-type-from-a-form)



How can I check Roproperty of a specific object type from a form? - TestNG - 06-08-2011

hi,
Can anyone tell me how to check Roproperty of a specific object type from a form using DP?

I am working with a web form and it mostly consists of Labels,txt boxes and chk boxes. I need to get the run time value of the static txt from the "labels" or "other instructions" and check the Font properties with the requirement. I am using QTP V10.

1. I want to create a scenario where i can get the RO Property of all the static txt (including labels) and check the font properties (size, type, color etc) against any given requirements.

2. if a paragraph consists of static txt with a mixture of diff font size and some of the words are bold and some of them are regular how do i check the Roproperty of that paragraph and compare against multiple arguments if it is a requirement?

Please note that the purpose of my action is for automating the scenario and i am using DP in QTP10.

Is there any one who can answer the questions plz and provide some good code with reasonable explanation?

Thanks in advance.

Raj