Micro Focus QTP (UFT) Forums
Font Size & Color Testing - 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: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Font Size & Color Testing (/Thread-Font-Size-Color-Testing)



Font Size & Color Testing - thota - 03-06-2009

How can we test Font Size, Font Color in web application using QTP.


RE: Font Size & Color Testing - papu - 03-10-2009

Yes, but whose font size and color do u want to test?
let me give one general example for an web element.use the below code
Code:
WebElement("SomeName").Object.currentStyle.someProperty

here 'someProperty' can be:color,fontSize,fontstyle etc...