I am new to QTP and trying out some Java GUI automation. I have to click a java button and sometimes the button may not be available to click. i.e it will be in disable state.
Because of this, my code is fail to click the button
JavaWindow("TestApp").JavaButton("Apply").Click
How can I make it to handle the error case ?
Note : I am using QTP's record and playback option only, not the descriptive programming.