Is there a way using QTP to learn hidden objects?
First I should convey thanks to Tarun for promptly replying to my posts in below thread and also taking time off in resolving the issue by having a one-to-one session. This forum is of immense help and has been my only tool in learning QTP & WINRUNNER.
Now coming to current post what I am looking is if there is any way using QTP to find any hidden contols in AUT, while recording. This way one can know what actual object hierarchy is. What we found in my app is when we record then below is recorded
VbWindow("frmTellerNav").ActiveX("SSSplitter").Act iveX("OMAContainer.ctlOMA").ActiveX("OMA.ctlOpenMo d").ActiveX("SSPanel").ActiveX("SSTab").ActiveX("U DataControls.UDataField").VbEdit("Text1").Set "test"
Above worked when I had abs_x & abx_y properties for object ActiveX("UDataControls.UDataField"). When the said properties were removed I started having issues, hence my earlier thread got started. The same when coded like below works without abs_x and abs_y
VbWindow("frmTellerNav").ActiveX("SSSplitter").Act iveX("OMAContainer.ctlOMA").ActiveX("OMA.ctlOpenMo d").ActiveX("SSPanel").ActiveX("SSTab").VbFrame("F rame3").ActiveX("PROGID:=UDataControls.UDataField" ,"location:=0").object.text="address1"
The difference is object VbFrame("Frame3"). This is not recorded in OR but learnt manually thru object spy.
Re: Is there a way using QTP to learn hidden objec
While adding the object to the OR, select the parent object of the frame and then use selected type objects filter with Frame object checked.