I want to see all the properties of agent name in login
window. I will use the script

Set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( )
msgbox

but my question is how to use the msgbox if i use a it will
display only a, so anyone pls let me know how to get the
display of all the properties using GetToProperties () or
GetRoProperties (). Thanks a lot

Answers were Sorted based on User's Feedback



I want to see all the properties of agent name in login window. I will use the script Set a=Wi..

Answer / hemakumar.m

set a=Window("FR").WinEdit("Agent Name:")
Set oEdtobj=a.GetToProperties
Prop_Count=oEdtobj.count()

For i=0 to Prop_Count-1
PropsName=oEdtobj(i).Name
PropsValue=oEdtobj(i).Value
msgbox PropsName &" = " & PropsValue
Next

Is This Answer Correct ?    4 Yes 1 No

I want to see all the properties of agent name in login window. I will use the script Set a=Wi..

Answer / sreekanth chilam

Hi,

Try with the below code , you will get the solution.

set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( )
Prop_Count=a.count()

For i=0 to (Prop_Count-1)
msgbox a(i)
Next

Is This Answer Correct ?    2 Yes 0 No

I want to see all the properties of agent name in login window. I will use the script Set a=Wi..

Answer / abc

a=Dialog("Login").WinEdit("Agent
Name:").GetROProperty("nativeclass")
Print a

Is This Answer Correct ?    1 Yes 1 No

I want to see all the properties of agent name in login window. I will use the script Set a=Wi..

Answer / abc

I have asked for GetRoProperties not GetRoProperty
I mean all the properties not single property

Is This Answer Correct ?    0 Yes 0 No

I want to see all the properties of agent name in login window. I will use the script Set a=Wi..

Answer / ahfahfahdh adhadi

set a=Window("FR").WinEdit("Agent Name:")
Set oEdtobj=a.GetToProperties
Prop_Count=oEdtobj.count()

For i=0 to Prop_Count-1
PropsName=oEdtobj(i).Name
PropsValue=oEdtobj(i).Value
msgbox PropsName &" = " & PropsValue
Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the difference between testing and debugging?

2 Answers  


What is an object repository?

0 Answers  


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

0 Answers   Livetek,


How does qtp identify objects in the application?

0 Answers  


what is the purpose of .vbs file?

2 Answers   HCL,






Why is action split used by qtp?

0 Answers  


There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.

0 Answers  


wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?

2 Answers   Datamatics,


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

0 Answers  


how can we compare descriptive programing with a regular expression

0 Answers  


What information do the columns in the Keyword View show for each step?

1 Answers  


How to retrieve value (data) from notepad using QTP ?

5 Answers   Health Care,


Categories