希望能找到能与我共同进步的知心朋友!

qtp测试字体颜色(转载)

上一篇 / 下一篇  2008-12-31 10:17:23

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

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

 

评分:0

我来说两句

Open Toolbar