Forum Discussion
Is there an action or event that occurs before your attempt to click on the ComboBox that would enable it? It's possible that this is an issue in timing where the ComboBox may not be immediately enabled when your test attempts to click on it.
Best bet is to use a WaitProperty method on the ComboBox to wait for it to be enabled.
- parthkar278 years agoOccasional Contributor
Thanks for your response.
As per your suggestion, I induced wait to my code by using Call Delay function but, it did not work and did not fetch me the desired result i.e. the combox was still disabled.
Is there any way to enable that combo box ?
Thanks in advance
- tristaanogre8 years agoEsteemed Contributor
Enabling a combo box is not a function of what TestComplete does. TestComplete attempts to interact with the component. If the component is disabled (meaning the "Enabled" property is set to False) then TestComplete will generate the message you are receiving.
So, the question REALLY is: why is the box disabled when TestComplete attempts to interact with it? Are you properly identifying the box? Is TestComplete seeing some other box when you send the command?
This is where you dig in and figure out "why is it disabled?" Use Object Spy and Object Browser and manually walk through the test steps yourself and see if you can figure out why TestComplete sees the box as disabled.