[原创]QTP测试页面字体颜色的办法

上一篇 / 下一篇  2007-03-23 15:34:30 / 个人分类:QTP

和大家分享一下刚学的测试字体颜色的方法。

set iDisplay = Browser().Page().WebElement().Object
' Get the currentstyle object
set iDisplayStyle = iDisplay.currentstyle
' Access the Display attribute
sTmp = ""
sTmp = iDisplayStyle.color

'This way gets you the color of object.

当然字体大小,什么字体也一样可以测试了。


TAG: QTP

引用 删除 zzcheng0414   /   2011-08-05 11:27:24
-5
 

评分:0

我来说两句

Open Toolbar