Micro Focus QTP (UFT) Forums
Waitproperty is not working - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Waitproperty is not working (/Thread-Waitproperty-is-not-working)



Waitproperty is not working - excellentpawan123 - 06-06-2014

Code:
Dialog("text:=XYZ").winbutton("text:=Export Data").Click
'on the time of exporting this buttons gets disabled until data is not exported in excel

Services.StartTransaction "Time taken in generate excel report"

Dialog("text:=Field Drive Indices Plot").winbutton("text:=Export Data","nativeclass:=Button").WaitProperty "enabled",1

Services.EndTransaction "Time taken in generate excel report"

Dialog("text:=XYZ").close

When i execute this code i have to wait until export data button is being enabled but it executes last step and error message comes "Object disabled"


RE: Waitproperty is not working - raju - 06-13-2014


you can use..


Code:
Dialog("text:=Field Drive Indices Plot").winbutton("text:=Export Data","nativeclass:=Button").WaitProperty "enabled",True,5000