Micro Focus QTP (UFT) Forums

Full Version: Background color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Scenario:

I have to capture the screen background color on my project application.There are 7 navigations and all the 7 pages have different background color.

What I followed:
I object spied on all the screens and was unable to find the test object property as bgcolor for my project application.(Using Getroproperty)

Hence, I am unable to capture the same. Or is there any other way where I could capture this detail
Have you tried

Browser().Page.XXXX.YYYY.object.color ?
no...still cant
ok this might have to do with the CSS... use object.currentstyle.color or object.currentstyle.bordercolor

(Tip: Name of the defined color which the developer has given can be found from the View Source of web page.)