Forum Discussion

Bonibom's avatar
Bonibom
Contributor
7 years ago

Error in the help section "Checking the Toolbar Buttons' State"

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/standard/tool-bar/checking-button-state.html

 

Section: Checking if the Button is Enabled

 

Python example:

 

while ToolBar.wEnabled("Up"):
    ToolBar.ClickItem("Up")

leads to runtime error

 

 

TypeError: 'IDispatchIndexedPropertyWrapper' object is not callable

 

The example would need to be corrected to:

 

while ToolBar.wEnabled["Up"]:
    ToolBar.ClickItem("Up")