Micro Focus QTP (UFT) Forums

Full Version: Waitproperty is not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"

you can use..


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