Forum Discussion
Hi.
I have tried using the "Keys" method for entering the text t but I still get the button disabled error on the click method for the button.
I also found 2 focus methods available:
the first was "Focus" which had no parameters/values required, so I just set this for the Add button but got the same failure message that the Add button is disabled when the click operation is performed
The second method I tried was "AutoFocus" for which I set a boolean parameter of True for the Add button I am trying to click, again I got the button is disabled error message.
I have been talking to our developer here and he suggested that it may be a syntax recognition problem with how TestComplete is interpreting the HTML disabling of the button. I have pasted in the OUterHTML for the add button below. 1 shows HTML when the button is disabled, 2 when the button has been enabled. Could TestComplete have some issue in recognising the change from disabled to enabled??
1. <button type="button" id="dlgDLG_FRMWRK_002CreateObject" class="rf-button ui-button ui-corner-all ui-widget rf-dialog-submit ui-button-disabled ui-state-disabled" title="" disabled="">Add</button>
2. <button type="button" id="dlgDLG_FRMWRK_002CreateObject" class="rf-button ui-button ui-corner-all ui-widget rf-dialog-submit" title="">Add</button>
Hi,
Try to change NameMapping for this button using conditional mapping like:
outerHTML -> Does not equals -> *ui-state-disabled*
contentText -> Equals -> Add
- ThomasCasserly7 years agoFrequent Contributor
Hi, I tried adding conditions to the namemapping of the button and still getting the same result, error message that the button is disabled.