06-06-2014, 04:35 PM
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"