QTP如何测试字体颜色

上一篇 / 下一篇  2012-02-16 16:49:27 / 个人分类:QTP进阶

QTP测试字体颜色源代码:

set Display =
IBPAutoTest.item("Page")
.WebElement().Object
' Get the currentstyle. object
set DisplayStyle. = oDisplay.currentstyle
' Access the Display attribute
errmsg 
= ""
errmsg 
= iDisplayStyle.color

'This way gets you the color of object.

stmp = IBPAutoTest.item("Page").WebElement().GetRoProperty("innertext")
slDicData.item("运行结果") = slDicData.item("运行结果") & 
stmp 
&":" &errmsg & "."

其他文本测试拓展:


TAG:

woddebbmm的个人空间 引用 删除 woddebbmm   /   2012-02-17 11:35:01
没有很看懂,留下个脚印,,
 

评分:0

我来说两句

Open Toolbar