Get Object Background Color
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2013
03:22 AM
09-18-2013
03:22 AM
Get Object Background Color
Hi,
Just a question in general; I have an object (window type) that I need to retrieve the background color from.
Using the object spy functionality shows that there is no property that exists for retrieving the background color.
I have searched through the help index and have not found anything pretaining to this.
Is there a TestComplete functionality that I can leverage to retrieve the background color?
We could attempt to take an image of the object and pick certain points on the image to retrieve the pixel colors from, but such a method is not guranteed to be always correct.
Just a question in general; I have an object (window type) that I need to retrieve the background color from.
Using the object spy functionality shows that there is no property that exists for retrieving the background color.
I have searched through the help index and have not found anything pretaining to this.
Is there a TestComplete functionality that I can leverage to retrieve the background color?
We could attempt to take an image of the object and pick certain points on the image to retrieve the pixel colors from, but such a method is not guranteed to be always correct.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2013
08:24 PM
09-23-2013
08:24 PM
Hi,
Use the following "Object.currentstyle.backgroundColor" to get the the background color
Thanks
Use the following "Object.currentstyle.backgroundColor" to get the the background color
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2013
02:22 AM
09-27-2013
02:22 AM
The object 'currentstyle' does not exist for the object that I'm attempting to get the property of.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2013
07:29 PM
09-29-2013
07:29 PM
Hi Gindi,
Go through the "Get a control's background color" How To article - it may help you.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2018
07:09 AM
07-19-2018
07:09 AM
Is that code available in Python?
