Button detected as disabled during test run and causing test failure
Hi,
I am having an issue with controls that is causing my test to fail. Control in question is a button on a pop up dialog. The button only becomes enabled after the user enters text into a text field
During my test the click operation on this button fails with TestComplete reporting that the button is disabled.
The button is visually enabled onscreen, if I use the object spy the "Enabled" Property for the button displays "True".
I have tried adding WaitProperty method for the button, choosing the Enabled property of the button under test and setting the Property value as boolean "True".
I have also tried using the Exists method for the button.
In both cases TestComplete appears to check these methods, pass them, then move on to the button click method and fail with the "button is disabled" message.
This also happens on at least one other pop up dialog in my system and I am currently assuming it will happen on all where a button is disabled until the user enters data in some other field.
I've checked the other issues here on the community and solutions suggested there i.e. use WaitProperty, have not resolved the problem
Browser: Firefox
OS: Windows 10
Oh also, I'm running keyword tests, I've no scripting/programming experience.
Any help would be greatly appreciated