how to get childobject from .net application. i tried but
its showing child object count zero. but window has child
objects.the following script i written... pls help me how to
get.
set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton
Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("micClass:").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function
Hi Check this code...
set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton
Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("mercury class").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function
instead of above use this..
set odesc = description.create
odesc("Class Name").Value = "SwfButton"
set childobj = window("<Window name>").childobjects(odesc)
k = childobj.count
msgbox k
Let me know the feedback -----------
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
If some requirements r changed during the testing process ,then how can u handle this in frame work?
Give me exact application where we should use low level recording?
diff between wr and qtp in detail.
1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). 2. Using descriptive programing, how do you handle changing URLs. Pls anyone, very urgent
How can i Save the snapshots in a specified folders using Scripting in QTP?
How to define array in qtp?
what is file database
can we install qtp on server machine and do automation of application which is installed on client machine.If yes then how? If no then is there any other automation tool for this (client-server) senario.
Could you please explain me about QTP framework.
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
Can anybody give the script to addsheet, add column,add values under that column in the rows??