Micro Focus QTP (UFT) Forums

Full Version: Custom Object usage in the script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi ANKUR,

how to write a script for the custom object? In my Application i face all the Properties such as like windows, dialog,button everything as winobject. i even tried with object identifier to change the object properties but it doesnt work. can u give some sample scripts for this? which one i can use for property? as of now iam using object class or native class in the script.

eg:
Code:
SystemUtil.Run"D:\Code\PresentationLayer.exe"
Set a= Window("text:=Systems Login")
a.Activate
a.WinObject("object class:=WindowsForms10.EDIT.app.0.378734a").Type"admin"
a.WinObject("object class:=WindowsForms10.EDIT.app.0.378734a").Type  micTab
a.WinObject("object class:=WindowsForms10.EDIT.app.0.378734a","height:=13").Type"dss"
a.WinObject("object class:=WindowsForms10.EDIT.app.0.378734a","height:=13").Type  micTab
a.WinObject("text:=Login").Click

Itz working fine but my doubt is,
can i use the Height property in the script. plz help with this ankur