Micro Focus QTP (UFT) Forums
Color Text - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Color Text (/Thread-Color-Text)



Color Text - bfakruddin - 03-05-2009

How to validate Color of Text?


RE: Color Text - guocnc - 03-07-2009

Maybe one way we can use browser(....).page(...)...Object..... DCOM technology


RE: Color Text - bfakruddin - 03-12-2009

thanks for reply,

It is available in 9.1 version?


RE: Color Text - sreekanth chilam - 03-12-2009

Hi ,

Try with the below ways :

1)
Code:
browser(..).Page(..).Link(..).GetROProperty("Color")

2)
Code:
print browser("Gmail: Email from Google").Page("Gmail: Email from Google").Link("Sign up for Gmail").Object.currentStyle.Color
print browser("Gmail: Email from Google").Page("Gmail: Email from Google").Link("Sign up for Gmail").Object.currentStyle.BackgroundColor
print browser("Gmail: Email from Google").Page("Gmail: Email from Google").Link("Sign up for Gmail").Object.currentStyle.Fontsize
print browser("Gmail: Email from Google").Page("Gmail: Email from Google").Link("Sign up for Gmail").Object.currentStyle.Fontstyle