Micro Focus QTP (UFT) Forums
Custom Object usage in the script - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Custom Object usage in the script (/Thread-Custom-Object-usage-in-the-script)



Custom Object usage in the script - Arthieviswa - 03-19-2009

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