Forum Discussion
Hi,
we used to make use of the 'State' property which had values like 'focusable' and 'checked'. In TC8, we noticed two new properties named Focused and Pressed
Yes, in the latest version of TestComplete, we implemented a new approach to obtain the status of the control. Now, you can check any of its states (focused, checked, and so on) using an appropriate read-only flag.
As for the Focusable and Checked properties:
1. The Focusable property is not the same as Focused. The Focusable property returns the True or False value based on whether the control may have the focus (in general). The Focused property returns the True or False value based on whether the needed control has the focus at the moment.
It's not obvious from your screenshot whether the buttons have the focus at the moment. Also, the Focused property is not the same as Pressed. If the button is not always pressed, it has the focus. Most likely, the button from the screenshot does not have the focus, that's why, Focused = false.
2. The Checked property is not the same as Pressed. Checked is a state of the check box control, but the Pressed property returns the True or False value based on whether the button (not the check box) is pressed.
It's weird that the Pan Tool (as it's a button) is in the checked state in the TestComplete 6.5 screenshot. Maybe this problem is caused by the MSAA provider of the application. To solve the problem, try installing the http://support.microsoft.com/kb/971513 package.
I hope this helps :)
Related Content
- 12 years ago
- 8 years ago
- 11 years ago
Recent Discussions
- 4 days ago
- 4 days ago