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
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 |
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 |
Answer / abc
a=Dialog("Login").WinEdit("Agent
Name:").GetROProperty("nativeclass")
Print a
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
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 |
How to handle the exceptions using the recovery scenario manager in qtp?
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
What is the another extention name of library file.If that is exist than what's the differnce between them.
i m fresher iwant to know about testing what is the scope of testing field.i m aware in manual testing shall i go to automatiuon testinh directly or if any work experinc in manual testinh then only i go to manually automation testing.
is it possible to check the text displayed in the tool tip using QTP? if so, how?
Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.
what is recovery manager and recovey scenerio?
keyword driven framework having how many folders? explain folders in detail?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
Explain about the quicktest professional (qtp) automation object model?
anyone can explain Diff B/w Actions and Functions
tell me about if in the interview what i should tell about pharma application,what r the pharma application concepts,i need pharma application testing features